POV-Ray : Newsgroups : povray.newusers : Mapping Splines in 2d before rendering them with a lathe or SOR Server Time
2 Nov 2024 13:18:57 EDT (-0400)
  Mapping Splines in 2d before rendering them with a lathe or SOR (Message 1 to 3 of 3)  
From: Mattkg0
Subject: Mapping Splines in 2d before rendering them with a lathe or SOR
Date: 29 Apr 2004 22:05:00
Message: <web.4091b3edf356f2f574cf43490@news.povray.org>
Hi Guys,


am now playing around with splines, lathes and the Surface Of Revolution
object. On the page that covers the SOR object (3.4.2) the tutorial
mentions a program that can model the lines of the SOR given the points




Does anyone have any suggestions of a Windows program that can model in 2d
the surface you will get for a liner, quadratic, cubic and Bezier spline as
well as the Surface Of Revolution object?

Any suggestions would be much appreciated.

Thanks,
Matthew.


Post a reply to this message

From: Mike Williams
Subject: Re: Mapping Splines in 2d before rendering them with a lathe or SOR
Date: 30 Apr 2004 02:32:12
Message: <D4xMACAq$ekAFwYe@econym.demon.co.uk>
Wasn't it Mattkg0 who wrote:
>Hi Guys,
>
>I?m currently working my way through the POV Ray beginner?s tutorial and I
>am now playing around with splines, lathes and the Surface Of Revolution
>object. On the page that covers the SOR object (3.4.2) the tutorial
>mentions a program that can model the lines of the SOR given the points
>that make it up. Such a program would indeed be useful but I?m not having
>much luck tracking one down, I?ve had a look around the links section but
>I?m not even sure of what type of program I should be looking for.
>
>Does anyone have any suggestions of a Windows program that can model in 2d
>the surface you will get for a liner, quadratic, cubic and Bezier spline as
>well as the Surface Of Revolution object?
>
>Any suggestions would be much appreciated.

I tend to visualise my splines in POV, which has the advantage of also working
well with 3D splines.

#declare I=0;
#while (I<1)
  sphere {MySpline(I),0.1 pigment {rgb <1,1,0>}}
  #declare I=I+0.005;
#end



One awkward thing is that the syntax for the spline info in a lathe is
different from the syntax of a real spline, so you have to have two copies.
You might think that you could just declare the spline and then do something
like this to copy the info into the lathe, and so only have one copy of the
information, but this doesn't work for the control points at the ends.

#declare N=5;   
lathe {
  cubic_spline
  N
  #declare I=0;
  #while (I<=1)
    , MySpline(I)
    #declare I=I+1/(N-1);
  #end
  pigment {rgb x}
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: gonzo
Subject: Re: Mapping Splines in 2d before rendering them with a lathe or SOR
Date: 30 Apr 2004 19:05:00
Message: <web.4092db4f5e5fea06a0c272b50@news.povray.org>
"Mattkg0" <mkg### [at] brdnetau> wrote:

> Does anyone have any suggestions of a Windows program that can model in 2d
> the surface you will get for a liner, quadratic, cubic and Bezier spline as
> well as the Surface Of Revolution object?
>
> Any suggestions would be much appreciated.

Try http://www.flashnet.it/users/fn027571/spil/main.html

I don't recall if it creates all the different kinds of splines or if you
have to change that in POV, but it at least lets you see generally what
shape you are getting from a given set of points. I used to use it a lot
for lathes & prisms, but I haven't been in Windows much lately.

RG


Post a reply to this message

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