ADVENTURE_CAD (Ver. 0.11 beta) Manual 1. Usage of advcad Command Assuming you have a geometry file, *.gm3d, type, % advcad [-pcm] It reads a geometry patch file, *.gm3d, specified as . is a real number which specifies average triangle patch size. It generates a surface patch file, *.pch or *.pcm, as specified by . If -pcm is designated, output surface patch is written in the pcm format. 2. Format of Geometry Files, *.gm3d sheet number_of_point point0(x,y,z) point1(x,y,z) .... Create a polygonal sheet primitive of vertices. All the vertex points, , , ... must be on a 3-D plane. Push it on the stack. circle center_vector(x,y,z) x_vector(x,y,z) z_vector(x,y,z) num_div Create a circle-like polygonal sheet primitive. Its center is . Its radius is the length of . It is placed on the coordinate system, whose X and Z vectors are specified as and , respectively. The angle of each edge is (360 / ). extrude vector(x,y,z) Pop 1 sheet object from the stack. Extrude it to the direction of , and create a new solid object. The length of is also used. Push it into the stack. revolve axis_point0(x,y,z) axis_point1(x,y,z) num_div Pop 1 sheet object from the stack. Revolve it around the specified axis., and create a new solid object. The rotation axis is along the line from to . The angle of each edge is (360 / ). Push it into the stack. box origin_point(x,y,z) extent_vector(x,y,z) Create a box solid primitive, from , with its size as . Push it on the stack. (A) (B) add Pop 2 solid/sheet objects A and B from the stack. Evaluate A + B, union of A and B, and create a new solid/sheet object. Push it on the stack. (A) (B) subtract Pop 2 solid/sheet objects A and B from the stack. Evaluate A - B and create a new solid/sheet object. Push it on the stack.