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