POV-Ray : Newsgroups : povray.advanced-users : SplineTransform on points? : Re: SplineTransform on points? Server Time
29 Jul 2024 02:31:33 EDT (-0400)
  Re: SplineTransform on points?  
From: Tyler Eaves
Date: 7 Apr 2003 06:51:43
Message: <3e91583f@news.povray.org>
ABX wrote:

> On Sun, 06 Apr 2003 22:59:03 -0400, Tyler Eaves <tyl### [at] hotpopcom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.