|
|
Going for broke here.
Broke what was already broken even broker.
Brokering the breaking.
Breaking badder.
POV-Ray, we have a Segmentation Fault (core dumped)
3 times in a row.
Save your open files before attempting to render.
#############################################
#version 3.7;
global_settings {assumed_gamma 1.0}
#declare U1 = 0;
#declare U2 = tau;
#declare V1 = 0;
#declare V2 = tau;
#declare Phi_inc = (tau/360)*30;
#declare Theta_inc = (tau/360)*10;
#declare Usize = (U2-U1)/Phi_inc;
#declare Vsize = (V2-V1)/Theta_inc;
// Run this as-is, and U goes to 11, and V goes to 35
// NOW
// change The line below to Usize+1, and U goes to 11, and V goes to 36 !!! :O
// How can a variable NOT USED in defining the range of a #for loop change the
behaviour of the loop!
// In BOTH variables!
// Usize is never redefined! W T H
#declare StitchedArray = array[Usize+2][Vsize+1]; // <----- Try it!
#for (U, 0, Usize-1)
#for (V, 0, Vsize-1)
#declare StitchedArray [U][V] = array[4][4];
#end
#end
#declare PatchArray = array [4][4];
#for (Phi, U1, U2, Phi_inc) // 0 to 2pi
#declare U = ceil(Phi/Phi_inc);
#for (Theta, V1, V2, Theta_inc)
#declare V = ceil(Theta/Theta_inc);
#for (Row, 0, 3)
#for (Col, 0, 3)
#declare PatchArray[Row][Col] = <0, 0, 0>;
#end
#end
#debug concat ("U1 = ", str(U, 0, 3), ", V1 = ", str(V, 0, 3), "\n")
#declare StitchedArray [U][V][0][0] = PatchArray[0][0];
#end
#end
#for (U, 0, Usize-1)
#for (V, 0, Vsize-1)
#debug concat ("U2 = ", str(U, 0, 0), ", V2 = ", str(V, 0, 0), "\n")
//#declare Test = StitchedArray [U][V][0][0];
//#declare Test1 = Test;
//#declare Test2 = Test[0][0];
#end
#end
#debug concat(vstr(3, StitchedArray [U][V][0][0], ", ", 0, 3), "\n")
Post a reply to this message
|
|