Author Topic: AcDbSubDMesh to Solid? or Polyface Mesh?  (Read 1500 times)

0 Members and 1 Guest are viewing this topic.

S.Langhammer

  • Guest
AcDbSubDMesh to Solid? or Polyface Mesh?
« on: December 04, 2013, 06:00:56 AM »
Hey,
I'm struggling on an entity at the moment. It's simply labeled "Mesh". The subclass calls it AcDbSubDMesh.

I have problems thinking of a way to read it out properly with the script I'm working on.

The easiest solution, that came to my mind was to explode it. That didn't work.
Then trying to select it with pedit. I hoped pedit might offer to convert it to a polyface mesh or something. That didn't work either.
I saved the file containing the Mesh as dxf to look at it and... well I see the way it's built. I could propably come up with something to give out a list of vertices. I might even come up with a smart solution to give out the face item list. The way I understood it, it's formated like this: A number of how many vertices form a surface followed by a list of vertex indices.

If I'd manage this I'd have the next problem: getting it into our program properly! A problem since I could get "faces" consisting of number of vertices.

The best idea I had now was to convert it to either Polyface meshs or Solids. Might anyone know a way to do that?