pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Extracting surfaces by names from an .iges CAD file

Open mkskalai opened this issue 4 years ago • 2 comments

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!

mkskalai avatar Aug 12 '21 11:08 mkskalai

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

tpaviot avatar Aug 24 '21 07:08 tpaviot

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

danisp9 avatar Oct 22 '21 08:10 danisp9