comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Create DXF file out of vertices and connectivities
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Create DXF file out of vertices and connectivities [message #39913] Fri, 25 June 2004 14:25 Go to previous message
Tukee10 is currently offline  Tukee10
Messages: 7
Registered: June 2004
Junior Member
Hello,
I have following problem: I created the mesh structure of a volume with
INTERVAL_VOLUME, which gives me vertices (3,n) and connectivities (1,m).
When I display it with XOBJVIEW, I get a wonderful 3d structure. How do I
create a DXF file that contains the mesh structure ?
I know that it works with an IDLffDXF object. I tried that with following
code:

ptr_verts = ptr_new(Verts)
ptr_conn = ptr_new(Conn)

oDXF = OBJ_NEW('IDLffDXF')
poly = {IDL_DXF_POLYGON}
poly.vertices = ptr_verts
poly.connectivity = ptr_conn
poly.dxf_type = 10

oDXF->PutEntity, poly
IF (not oDXF->Write('Mesh_Model.dxf')) THEN PRINT, 'Write Failed.'
OBJ_DESTROY, oDXF

It creates a DXF file, but when I open the file with AutoCAD, it seems to
connect all the point in a strange way.
Is there anyone who has an idea ?

Thanks,

Tukee.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Arrays
Next Topic: inverse function of binary.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:24:57 PDT 2025

Total time taken to generate the page: 1.11966 seconds