POV-Ray : Newsgroups : povray.general : Prism Object Server Time
29 Nov 2024 11:50:52 EST (-0500)
  Prism Object (Message 1 to 1 of 1)  
From: Kenneth Hutson
Subject: Prism Object
Date: 24 Oct 2005 13:33:30
Message: <435d1aea@news.povray.org>
Hey All,
I'm struggling a bit with Prism and cubic spline type. Assumming I have the 
following points on the corners of a square:

<0,0>,<1,0>,<1,1>,<0,1>

To get a smooth curve I would use:

prism{
cubic_spline
0,1,7,
<0,0>,<1,0>,<1,1>,<0,1>,<0,0>,<1,0>,<1,1>
}

Is it correct to assume that to obtain a smooth curve, all that need be done 
is to repeat the first three points?

Also, looks like the following concept is not possible. Correct?

#declare myspline =
spline{
cubic_spline
1,<0,0>
2,<1,0>
3,<1,1>
4,<0,0>
.....
}

prism{
spline{myspline}
}

Thanks all,
Kenneth Hutson


Post a reply to this message

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