tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.36k stars 378 forks source link

Extracting surfaces by names from an .iges CAD file #1028

Open mkskalai opened 3 years ago

mkskalai commented 3 years ago

Hello,

I am dealing with a following issue: an .iges file contains geometry as well as naming for surfaces (they are not unique, i.e. multiple surfaces can have the same name, thus forming a "zone"). I want to extract all surfaces, that have a predefined name (I have a list of all possible names). Is it possible to do using pythonOCC? I am able to load the CAD file but cannot understand if there is a way to look at properties, names of the entities etc. Could you help me out on this?

Thanks for any tip in advance!

tpaviot commented 3 years ago

I don't know how the mapping between names and surfaces is handled in the iges format and if/how you can access it using the occt library. Have a look at https://dev.opencascade.org/doc/overview/html/occt_user_guides__iges.html, there might be some hints

danisp9 commented 3 years ago

I have the same issue. Did you ever learn how to distinguish different surfaces from an IGES file? If so, how?