Page 1 of 1

Find an iges shape by name

Posted: Wed Jun 30, 2021 3:34 am
by Nurlan K
Hi,
I want to query a brep shape by its name. I do some iges imports. IBRepShape_DG does not seem to have a name property or any user data. Is there a way to do that?

Regards,
Nurlan

Re: Find an iges shape by name

Posted: Thu Jul 01, 2021 4:25 am
by Prashant Kande
Sub-shapes of BRep geometries do not have a name unfortunately. They are considered a pure geometric attribute. You could probably setup a map in your language to assign any per shape name or data.
IBRepShape_DG.GetHash() is a good candidate of a key for the map.

Regards