POV-Ray : Newsgroups : povray.general : How does bezier_spline work in prism? : How does bezier_spline work in prism? Server Time
19 Apr 2024 13:42:39 EDT (-0400)
  How does bezier_spline work in prism?  
From: Kima
Date: 8 Sep 2019 14:35:01
Message: <web.5d754943280504bdecc0fada0@news.povray.org>
I tried to make a simple circle by bezier_spline,

    prism {
      bezier_spline
     0,-.3,32,
<0.154,0.605>,<0.128,0.605>,<0.128,0.605>,<0.1105,0.6225>
<0.1105,0.6225>,<0.093,0.64>,<0.093,0.64>,<0.093,0.666>
<0.093,0.666>,<0.093,0.691>,<0.093,0.691>,<0.1105,0.709>
<0.1105,0.709>,<0.128,0.727>,<0.128,0.727>,<0.154,0.727>
<0.154,0.727>,<0.18,0.727>,<0.18,0.727>,<0.1975,0.709>
<0.1975,0.709>,<0.215,0.691>,<0.215,0.691>,<0.215,0.666>
<0.215,0.666>,<0.215,0.64>,<0.215,0.64>,<0.1975,0.6225>
<0.1975,0.6225>,<0.18,0.605>,<0.18,0.605>,<0.154,0.605>

      pigment { color rgb<1,0,0>}

}

but instead of a circle, it gave me an octagon as it seems the control points
are connected instead of start and end points.

What is wrong with my setting <start,control1,control2,end>?

Note that I want to understand bezier_spline rather than finding an alternative
for creating a specific shape.


Post a reply to this message

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