POV-Ray : Newsgroups : povray.beta-test : Spline causing 3.8 beta 2 to crash : Re: Spline causing 3.8 beta 2 to crash Server Time
22 May 2024 22:27:32 EDT (-0400)
  Re: Spline causing 3.8 beta 2 to crash  
From: Kenneth
Date: 9 Feb 2023 05:05:00
Message: <web.63e4c4a3dd6df1a99b4924336e066e29@news.povray.org>
Just discovered that your full original code example (WITH #debug) works OK, if
the #local inside the macro is changed to #declare. Why that should matter, I
don't know.

#macro make_spline()
    #declare _s   = spline {
        quadratic_spline
        0, <0, 0, 0>,
        1, <0, 0, 1>,
        2, <1, 0, 2>,
        3, <2, 1, 3>
    }
    _s
#end

#local myspline = spline { make_spline() }

#debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")


Post a reply to this message

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