|
|
> #version 3.7;
> global_settings {
> assumed_gamma 1.0
> }
>
> #include "colors.inc"
>
> #declare Feet = 12;
> #declare PHI = (1+sqrt(5))/2;
> #declare phi = (sqrt(5)-1)/2;
>
> #declare Camera_Orthographic = true;
> #declare Camera_Position = <0, 0, -300> ; // front view
> #declare Camera_Look_At = <0, 0, 0> ;
> #declare Fraction = 1; // functions as a zoom for the orthographic view: 4
> zooms in 4x, 8 zooms in 8x, etc.
>
> // ###########################################
> camera {
> #if (Camera_Orthographic = true)
> orthographic
> right x*image_width/(Fraction)
> up y*image_height/(Fraction)
> #else
> right x*image_width/image_height
> up y
> #end
> location Camera_Position
> look_at Camera_Look_At}
> // ###########################################
>
> background {White}
>
> light_source {<0, 10, -500> color White*0.5}
>
> #declare Origin = sphere {0, 1 pigment {Black}}
> //object {Origin}
>
> #declare HW = image_width/2;
> #declare HH = image_height/2;
>
> #declare F = 4;
>
> #declare Freq = F*tau/image_width;
> #declare YScale = 100;
> #declare R=0.5;
>
> // Central curve
> #declare Curve =
> union {
> #for (T, -HW, HW)
> #local XX = T;
> #local YY = YScale*sin (XX*Freq);
> sphere {<XX, YY, -1> R pigment {Black}}
> #if (T > 0)
That line should be
#if (T>-HW)
Otherwise "Curve" is not what I think you meant it to be...
Post a reply to this message
|
|