|
![](/i/fill.gif) |
Hi friends, I wanna make a solid tetrahedron using 4 triangles. I am using the
following code, but the object's inside is empty (I noticed it, when I used
difference command to subtract 4 spheres from the tetrahedron.
This is the code I am using:
//---------------------------------------
global_settings { assumed_gamma 1.0 }
#include "colors.inc"
//---------------------------------------
camera{ ultra_wide_angle
angle 75
right x*image_width/image_height
location <2 , 3 , -4>
look_at <0,0,0> }
//---------------------------------------
light_source{ <0,0,-2500>
color rgb<1,1,1> }
//---------------------------------------
background {color rgb<1,1,1>}
//---------------------------------------
#declare d =1.05;
difference{
object{
union {
triangle { < 1, 1, 1>, <-1, 1, -1>, < 1, -1, -1> }
triangle { <-1, 1, -1>, <-1, -1, 1>, < 1, -1, -1> }
triangle { < 1, 1, 1>, < 1, -1, -1>, <-1, -1, 1> }
triangle { < 1, 1, 1>, <-1, -1, 1>, <-1, 1, -1> }
}
pigment{ color rgb<1,0,0> }
}
sphere { < 1, 1, 1> , d}
sphere { <1, -1, -1> , d}
sphere { < -1, 1, -1> , d}
sphere { < -1, -1, 1> , d}
}
Post a reply to this message
|
![](/i/fill.gif) |