Message Boards Message Boards

BoundaryDiscretizeGraphics on Example DXF

Posted 10 years ago

Dear All
I would like to identify points inside a structure defined by a CAD file.

To begin with the general idea was to load the CAD file:

helicopter = Import["ExampleData/helicopter.dxf.gz"]

and then use BoundaryDiscretizeGraphics on this


but the following error appear:

BoundaryMeshRegion::bcsm: There is a closed curve or surface that does not include all cells specified for a boundary. A boundary should consist of a single closed curve or surface. >>

What does this mean?

The general idea is then to detect the bounds of the object, and then sample the object and identify points inside the structure using the method RegionMember to detect whether the point is inside the object. Other ideas are welcome!

POSTED BY: Preben Holm


I guess that the problem with this particular object is that it is made up of different disconnected parts. If you look closely at the image you will see that, e.g. the rotor is detached from the body of the helicopter. So the boundary is not a single closed surface.

enter image description here

The error message just states the problem. The same thing with another 3d object works just fine:

BoundaryDiscretizeGraphics[ExampleData[{"Geometry3D", "SpaceShuttle"}]]

enter image description here



POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract