Demo1
/* Demo2 jTrace file * by Damian Newport * 20/03/2001 */ /* Draws 3 cylinders one alone each axis, * finds the difference of the x & z axis cylinders * finds intersection of that with the y axis cylinder */ shape cyla (cylinder){ rotatex(90); scale(1,2,1); color (1,0,0); } shape cylb (cylinder){ rotatez(90); scale(1,2,1); color (0,1,0); } shape cylc (cylinder){ color (0,0,1); } light lighta { position(4,6,-8); color(1,1,1); intensity(6); } node nodea (cyla, difference, cylb){} node nodeb (nodea, intersect, cylc){ rotatex(30); rotatey(30); scale(2,2,2); } startnode nodeb;
Download this jTrace file
To view this you need the Java2 Plugin available from http://java.sun.com/products/plugin