GwieF.com : project.gwief.com : Demos : beta 0.15 : Demo1
logo

Demo1

</COMMENT>


/*	Demo1 jTrace file
 *	by Damian Newport
 *	16/03/2001
 */

/*	Draws a hyperboloid on top of a cylinder
 *	and a sphere ontop (and sunk into) the hyperboloid
 *	then cuts a thin long cylinder out from all 3
 */
 
 
shape hypa (hyperboloid){
rotateX(0);
color(1,0,0);
}

shape cyla (cylinder){
translate(0,-1,0);
rotatex(0);
color (1,0,0);
}

shape cylc (cylinder){
translate(0,-2,0);
scale(0.5,8,0.5);
color (1,1,1);
}

shape spherea (sphere){
translate(0,0.7,0);
scale(1.1,1.1,1.1);
color(1,0,0);
}

light lighta {
position(3,-30,-4);
color(1,1,1);
intensity(20);
}

node nodeb (hypa, add, spherea){}
node nodec (nodeb, add, cyla){}

node nodea (nodec, subtract, cylc){
rotatex(40);
// rotatez(60);
scale(1.5,1.5,1.5);
}

startnode nodea;

Download this jTrace file

To view this you need the Java2 Plugin available from http://java.sun.com/products/plugin