Public Member Functions | |
| def | __init__ |
| def | getObj |
| def | __eq__ |
| def | __hash__ |
Private Attributes | |
| _mainShape | |
| _id | |
This class enables the use of subshapes in sets or as dictionary keys. It implements __eq__ and __hash__ methods so that subshapes with the same CORBA object `mainShape` and the same `id` are considered equal.
| def GEOM_PY.structelem.parts.SubShapeID.__init__ | ( | self, | |
| mainShape, | |||
| id | |||
| ) |
| def GEOM_PY.structelem.parts.SubShapeID.getObj | ( | self, | |
| geom | |||
| ) |
Return the subshape (GEOM object). `geom` is a pseudo-geompy object used to find the geometrical object.
| def GEOM_PY.structelem.parts.SubShapeID.__eq__ | ( | self, | |
| other | |||
| ) |
| def GEOM_PY.structelem.parts.SubShapeID.__hash__ | ( | self | ) |
GEOM_PY.structelem.parts.SubShapeID._id [private] |