POV-Ray : Newsgroups : povray.general : bezier_spline with prism : Re: bezier_spline with prism Server Time
19 Apr 2024 12:04:41 EDT (-0400)
  Re: bezier_spline with prism  
From: Usb Hub
Date: 5 Sep 2019 15:30:00
Message: <web.5d71619b57efbc065256aba40@news.povray.org>
Now it works! The solution is, that the direction of the tangents at the start
and end control point of joining curves must be identical.
(http://wiki.povray.org/content/HowTo:Use_Splines_and_Bezier_Curves)

With this example it works:
prism {
    bezier_spline
    0, 10, 16
    <0, 1>, <.5, 1>, <1, .5>, <1, 0>
    <1, 0>, <1, -.5>, <.5, -1>, <0, -1>
    <0, -1>, <-.5, -1>, <-1, -.5>, <-1, 0>
    <-1, 0>, <-1, .5>, <-.5, 1>, <0, 1>
}

But now is the question, how can I make edges in the spline?

Thank you very much jr!


Post a reply to this message

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