|
![](/i/fill.gif) |
ABX wrote:
> On Sun, 06 Apr 2003 22:59:03 -0400, Tyler Eaves <tyl### [at] hotpop com> wrote:
>> How can I do the same calculation as SplineTransform in transform.inc on
>> a point? IE, something analagous to v_rotate and friends.
>
> This not clear question. Do you want rotate spline just like you already
> can rotate point (vector) or do you want to do something with point
> (vector)?
>
> ABX
Okay, imagine the following code.
#declare myspline = spline{spline stuff...}
sphere{<0,0,0>,1
Spline_Trans(myspline,.5, y, .1, 0);
}
With me do far? That'll place a sphere at the .5 posisition on the spline.
The funtion I desire, called like, say, the following:
magic_func(<0,0,0,>,myspline,.5,y,.1,0) would return the same same point the
sphere ends up at.
The final goal is something like this:
cylinder{
magic_func(<2,0,0,>,myspline,pos,y,.1,0),magic_func(<2,0,0,>,myspline,pos+.01,y,.1,0),1
}
Post a reply to this message
|
![](/i/fill.gif) |