|
|
Hi,
I wanted to ask if anyone knows how to create streamlines. I am visualizing
particles in a box that have a velocity. what I want to do is be able to
create a streamline or an arrow that origines in the particle and points
toward the {x,y,x} that I specify.
I would appreciate if anyone can help
thank you
karla
Post a reply to this message
|
|
|
|
Hi Karla,
you could try it like this:
cylinder{<point of particle>, <point ofparticle>+<direction>*velocity,
radius}
This would create a cylinder starting at the location of the particle, and
pointing in the specified direction.
Is this what you mean?
Greets,
JWV
"karla" <kar### [at] hotmailcom> wrote in message
news:web.40dc4b9ed18daaf0100aded90@news.povray.org...
> Hi,
> I wanted to ask if anyone knows how to create streamlines. I am
visualizing
> particles in a box that have a velocity. what I want to do is be able to
> create a streamline or an arrow that origines in the particle and points
> toward the {x,y,x} that I specify.
> I would appreciate if anyone can help
> thank you
>
> karla
>
>
Post a reply to this message
|
|
|
|
karla nous apporta ses lumieres ainsi en ce 25/06/2004 11:58... :
>Hi,
>I wanted to ask if anyone knows how to create streamlines. I am visualizing
>particles in a box that have a velocity. what I want to do is be able to
>create a streamline or an arrow that origines in the particle and points
>toward the {x,y,x} that I specify.
>I would appreciate if anyone can help
>thank you
>
>karla
>
>
>
>
If your particles are suposed to move in a traight line, you can use the
following:
union{
object{"your particle"translate<Px,Py,Pz>}
cylinder{<Px,Py,Pz>,<X,Y,Z>,"particle radius" hollow pigment{rgbt 1}
interior{media
{emission 1//if you want your trails to "glow"
scattering 1//to diffuse light like some fog
density{rgb 1}// adjust upward if to faint, down if to thick
}//media
}//interior
}//cylinder
}//union
If your particles are suposed to travel in a slight curve, use a torus
section instead of the cylinder. Major radius will be the trajectory
radius, it's minor radius is the particle radius. It's placement is more
tricky.
You could also use a sphere_sweep, it enable you to have some twisty
trajectories.
Alain
Post a reply to this message
|
|