Next: featpost3D, Previous: graph3, Up: Base modules
solids
This is the beginnings of a solid geometry package. The following example
uses it to display the outline of a circular cylinder of radius 1 and
height 1.5 aligned in the direction (0,1,1)
with perspective projection:
import solids; size(0,100); guide3[] g=cylinder(circle(O,1,Z),1.5,Z+Y); draw(g); triple M=max(g); xaxis(Label("$x$",1),O,M.x,red,Below); yaxis(Label("$y$",1),O,M.y,red,Below); zaxis(Label("$z$",1),O,M.z,red,Below);