ff3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ff3d-users] How to solve when there are different regions in the do


From: Stephane Del Pino
Subject: Re: [ff3d-users] How to solve when there are different regions in the domain
Date: Wed, 6 Jan 2010 09:21:27 +0100
User-agent: KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; )

Hello!

Le mercredi 6 janvier 2010, Juzar Thingna a écrit :
> Hi Stephane,
> Here is my pov file
> 
> box {
> <0,120,0>,<250,130,250>
> pigment{
> color rgb <0,0,0>}
> }
> box {
> <3,130,3>,<123,250,123>
> pigment{
> color rgb <1,0,0>}
> }
> box {
> <126,0,126>,<246,120,246>
> pigment{
> color rgb <0,1,0>}
> }
> 
> And the computational domain is the foll
> 
> vector n=(100,100,100);
> vector a=(0,0,0);
> vector b=(250,250,250);
> scene S=pov("graphene.pov");
> mesh M=structured(n,a,b);
> 
> And the problem occurs when I specify
> 
> domain O =domain(S,inside(<1,0,0>) && inside(<0,0,0>)&& inside(<0,1,0>));
I think you meant union of your boxes in previous mails.
So, it is not a 'and' (&&) but a 'or' (||) that you need for your domain 
definition :

domain O =domain(S,inside(<1,0,0>) || inside(<0,0,0>) || inside(<0,1,0>));

Best regards,
Stéphane.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]