POV-Ray : Newsgroups : povray.general : transforming splines : Re: transforming splines Server Time
1 Aug 2024 04:18:24 EDT (-0400)
  Re: transforming splines  
From: Jim Charter
Date: 3 Apr 2006 11:50:50
Message: <4431445a$1@news.povray.org>
Charles C wrote:
> HI, I've got a 2 part question. I think the short answer will be "no" but I
> haven't found the answer for sure looking on my own. (not sure if this'd be
> better in NewUsers or general):
> 
> I was starting on a project where I'll be using splines extensively, and not
> for the usual camera paths or prisms etc.  It'd be useful if rotate, scale
> and translate could be applied directly to a spline.  Say, for instance you
> have a string of Object_A along Spline_A and you want to create a similar
> string of Object_B along Spline_B where Spline_B is a mirrored copy of
> Spline_A.  Is there a simple way to do this example other than keeping
> track of the control points (in an array or whatever)?
>
> 

I think you'll have to transform the control points not the spline.  The 
transform itself can be predefined, then use vtransform.  It may or may 
not advantage you to store the points in an array.


Post a reply to this message

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