|
|
"Dave Matthews" <dav### [at] mnwestedu> wrote:
> Any ideas?
Here's a complete scene example: The problem in this one starts at _Num =
607 (and higher):
#declare KNOT_SplineC =
spline {
cubic_spline
-.25, <0,0,-5>
0.00, <5,0,0>
0.25, <0,5,0>
0.50, <-5,0,0>
0.75, <0,0,-5>
1.00, <0,-5,0>
1.25, <0,0,-5>
}
#include "transforms.inc"
#declare Arrows = union {
#local _Num = 607;
#local _K = 0;
#while (_K < _Num )
sphere {0, 0.5 translate KNOT_SplineC(_K/_Num)
pigment { color rgb <1,0.8,0.3> } }
cylinder {<0.5,0,0>, <1,0,0>, 0.05 rotate <0, 0, 360*72*_K/_Num>
Spline_Trans(KNOT_SplineC, _K/_Num, y, 0.001, 0.001)
pigment { color rgb <0.2,0.8,0.3> } }
#local _K = _K + 1;
#end
}
object { Arrows }
camera { location -15*z look_at 0 }
light_source { -300*z rgb 1 }
/////////////////////////////////////////////////
Strangely, with the spheres removed, _Num can go as high as 2144 before the
error is encountered. I can't see why that should happen, at all....
////////////////////////////////////////
Now, to make matters even weirder, eliminate the spheres, and replace the
_Num in the denominator of the rotation angle with (_Num + 0), or (_Num +
anything else I tried), and the error begins with _Num = 144.
Post a reply to this message
|
|