POV-Ray : Newsgroups : povray.general : Prism Object Server Time
1 Aug 2024 14:34:11 EDT (-0400)
  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.