RE: [Plib-devel] DXF R12 Polyline question
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-03-29 23:02:08
|
oops. there are 8x4 = 32 vertex entities supplied so i guess i don't need size or spacing. still don't know what "closure" means. anyone want to guess? -----Original Message----- From: pli...@li... [mailto:pli...@li...]On Behalf Of Dave McClurg Sent: Wednesday, March 29, 2000 10:52 AM To: 'pli...@li...' Subject: [Plib-devel] DXF R12 Polyline question I would like to support a special type of DXF POLYLINE entity in PLIB called a polygon MxN mesh. This is a uniform grid of 3d polygons with optional closure of the mesh in the M, N or M&N directions. The following fragment is from a chair DXF file that Wolfram gave me and defines a 8 x 4 polygon mesh closed in the M direction. Can anyone tell me how to determine the spacing and size of the grid. I'm not sure how to generate triangles from this. VPORT defines 15 0.1 25 0.1 which could indicate grid spacing but does that apply to all grids in the file? even so, what is the size of the grid? are the vertex coords in the polyline the center or side of the grid? what does closed mean? hmmmm. I can send you the entire DXF if interested. I've looked through several DXF specs online but I'm kind of stumped right now. Thanks, --Dave McClurg POLYLINE 8 LEG 66 1 10 0.0 20 0.0 30 0.0 70 17 71 8 72 4 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.514997 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.514997 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.727779 20 12.558272 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.727779 20 12.558272 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.771053 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.771053 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.727779 20 12.767218 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.727779 20 12.767218 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.810492 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.810492 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.518833 20 12.767218 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.518833 20 12.767218 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.475559 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.475559 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.518833 20 12.558272 30 -16.954128 70 64 0 VERTEX 8 LEG 10 -1.518833 20 12.558272 30 -17.454128 70 64 0 VERTEX 8 LEG 10 -1.623306 20 12.662745 30 -17.454128 70 64 0 SEQEND |