ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Meshing of Solid in AutoCAD 2013

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
611 Views, 1 Reply

Meshing of Solid in AutoCAD 2013

Solid3d solid3d = (Solid3d)entity;
DBObject  dbObject=(DBObject )entity;
SubDMesh subDMesh = new SubDMesh();
MeshFaceterData meshFaceterData=new MeshFaceterData();
meshFaceterData.FaceterMeshType =2;
MeshDataCollection meshDataColl = SubDMesh.GetObjectMesh(dbObject, meshFaceterData);

Int32Collection faces = meshDataColl.FaceArray;
Point3dCollection vertices= meshDataColl.VertexArray;

 

//------------------------------------------------------------+

 

The input is Cube of side 10 units.

the vertices.Count=8 

the faces.Count = 48 [whose meaning I didnt understood]...

 

the data in faces are integers ranging from 0-7... [verices are 8  (0-7)]

 

 

 

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: Anonymous

Hi

 

You may want to take a look at the following post, it illustrates a way to visualize the result of the mesh. It will then be more explicit why you are getting those values:

 

http://through-the-interface.typepad.com/through_the_interface/2011/03/generating-a-mesh-for-a-3d-so...

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost