HOME | DD
Published: 2005-07-03 19:58:15 +0000 UTC; Views: 592; Favourites: 0; Downloads: 16
Redirect to original
Description
Got the cross braces under better control now.The floor is a red and green checkboard, 1 unit squares. The structure is a 2 by 3 by 4 grid of 2 unit cubical cells. If I've done it right, orange struts cross at the center of every face of every cube, and brown struts cross at the center of every cube.
This must be the height of boredom for creative types, but getting this kind of thing to work right is like playing scales to a musician. You gotsta get it right.
#version 3.5;
#include "colors.inc"
#include "stones.inc"
global_settings {assumed_gamma 1.0}
background {rgb <1,0.9,0.9>}
camera {location <7,10,-2> look_at <2,3,2> }
light_source {<500,700,500> rgb 1 }
plane {
y, 0
pigment { checker color Red, color Green scale 1 }
}
#declare x0 = 0;
#declare y0 = 0;
#declare z0 = 0;
#declare x1 = 2;
#declare y1 = 3;
#declare z1 = 4;
#declare L = 2 ;
#declare R = 0.1;
#declare i = y0 ;
#while (i <= y1 )
#declare j = x0;
#while (j <= x1)
#declare k = z0;
#while (k <= z1)
sphere {
#if ( (j+1) <= x1 )
cylinder {
#end
#if ( (i+1) <= y1 )
cylinder {
#end
#if ( (k+1) <= z1 )
cylinder {
#end
#if ((j-1) >= x0 & (k+1) <= z1)
cylinder {
#end
#if ((j+1) <= x1 & (k+1) <= z1)
cylinder {
#end
#if ((i-1) >= y0 & (k+1) <= z1)
cylinder {
#end
#if ((i+1) <= y1 & (k+1) <= z1)
cylinder {
#end
#if ((i-1) >= y0 & (j+1) <= x1)
cylinder {
#end
#if ((i+1) <= y1 & (j+1) <= x1)
cylinder {
#end
#if((k+1) <= z1 & (j-1) >= x0 & (i-1) >= y0)
cylinder {
#end
#if((k+1) <= z1 & (j-1) >= x0 & (i+1) <= y1)
cylinder {
#end
#if((k+1) <= z1 & (j+1) <= x1 & (i-1) >= y0)
cylinder {
#end
#if((k+1) <= z1 & (j+1) <= x1 & (i+1) <= y1)
cylinder {
#end
#declare k = k+1;
#end
#declare j = j+1;
#end
#declare i = i+1 ;
#end

























