![]() |
Chemical Data Processing Library Python API - Version 1.3.0
|
The base of all Vis.Shape3D visitor implementations [VPTN]. More...
Public Member Functions | |
None | __init__ () |
Initializes the Shape3DVisitor instance. | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
None | visitTriangleMesh (TriangleMesh3D mesh) |
Visit method for Vis.TriangleMesh3D instances. More... | |
Properties | |
objectID = property(getObjectID) | |
The base of all Vis.Shape3D visitor implementations [VPTN].
int CDPL.Vis.Shape3DVisitor.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Shape3DVisitor
instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two Shape3DVisitor
instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
None CDPL.Vis.Shape3DVisitor.visitTriangleMesh | ( | TriangleMesh3D | mesh | ) |
Visit method for Vis.TriangleMesh3D instances.
mesh | The Vis.TriangleMesh3D instance to visit. |