Hello again list :)<br><br>I was playing around with the a simple shape. Wondering whether the lighting would be better, I threw in the 'poly-convert-to-indexed' call. I observed that, if that's called, it crashes on the next call to 'recalc-normals'.<br>
<br>The same behaviour on the 0.17-rc5 version (PLT 4.2.5) as the GIT version I downloaded earlier and modified myself to compile against Racket 5.0, which leads me to believe that this must be a bug in the program... <br>
<br>Now, for some reason I am unable to run 'gdb' on the fluxus binary, it starts coughing up segmentation faults all over the place like these right after 'run':<br><br> <div style="margin-left: 40px;">Program received signal SIGSEGV, Segmentation fault.<br>
scheme_gmp_tls_unload (s=0x7ffff1076360, data=0x0) at ./gmp/gmp.c:5816<br>5816 ./gmp/gmp.c: No such file or directory.<br> in ./gmp/gmp.c<br></div><br>Anyone know what's up with that, or is there an obscure compile option to make that work?<br>
<br>Anyway, here is the code that crashes the program:<br><br><div style="margin-left: 40px;">(clear)<br>
(colour (vector 1 1 1))<br><br>
(define mypoly (build-polygons 8 'triangle-strip))<br>
(with-primitive mypoly<br>
(pdata-set! "p" 0 (vector 1 0 0))<br>
(pdata-set! "p" 1 (vector 4 0 0))<br>
(pdata-set! "p" 2 (vector 1 2 0))<br>
(pdata-set! "p" 3 (vector 4 2 0))<br><br>
(pdata-set! "p" 4 (vector 0 2 0))<br>
(pdata-set! "p" 5 (vector 5 2 0))<br>
(pdata-set! "p" 6 (vector 0 6 0))<br>
(pdata-set! "p" 7 (vector 5 6 0))<br><br>
(poly-convert-to-indexed)<br>
(recalc-normals 1); crash here<br>
)<br></div>
<br><br>Cheers,<br>Hugo<br><br><br><br>