home *** CD-ROM | disk | FTP | other *** search
- program DXFDemo;
-
- {
- This demo creates a box with a cylinder in it.
- After DXFINing try
- VPOINT 2,-2.5,2.5
- and
- HIDE
- }
-
- uses TurboDXF,DOS;
-
- begin
-
- OpenDXF('DXFDEMO3.DXF');
-
- {first draw a 3D cube...}
- Add3DFaceToDXF(0,0,0,0,0,1,1,0,1,1,0,0,'LAYER1');
- Add3DFaceToDXF(0,0,0,0,0,1,0,1,1,0,1,0,'LAYER1');
- Add3DFaceToDXF(1,0,0,1,0,1,1,1,1,1,1,0,'LAYER1');
- Add3DFaceToDXF(0,1,0,0,1,1,1,1,1,1,1,0,'LAYER1');
-
- {Now put a cylinder up the middle of the cube...}
- {Radius is 0.25, extrusion is 1. }
- AddCircleToDXF(0.5,0.5,0,0.25,1,'LAYER1');
-
- CloseDXF;
-
- end.