|
![](/i/fill.gif) |
Not sure if I should put this here, or in p.programming...
Well, the other day I played with sphere_sweep, and commented out some
components to see the changes.
I ended with doing a cubic_spline sphere_sweep with only 3 spheres, which
is illegal, according to the documentation (6.5.1.10).
sphere_sweep {
// linear_spline
cubic_spline
3,
<0, stemLength, 0>, stemRad
<0, stemLength/2, 0>, stemRad
// <0, stemLength/4, 0>, stemRad
// <0, stemLength/8, 0>, serifRad/4
// <0, stemLength/16, 0>, serifRad/2
<0, 0, 0>, serifRad
// tolerance 0.1
bounded_by { box { <-serifRad, -stemLength-stemRad, -serifRad>
<serifRad, serifRad, serifRad> } }
}
The problem is the resulting error message (in Windows version of POV-Ray
3.5 on Win98SE) is quite strange:
Parse Error: Attempt to malloc zero size block (File:
..\..\source\sphsweep.cpp Line: 1613).
I think the scene error should be catched earlier (?) and results in a
more user friendly message, not one for code hackers :-)
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
Post a reply to this message
|
![](/i/fill.gif) |