![]() |
Chemical Data Processing Library Python API - Version 1.3.0
|
Data structure for describing the geometric shape of 3D objects by means of a triangle mesh. More...
Public Member Functions | |
None | __init__ () |
Initializes the TriangleMesh3D instance. | |
None | __init__ (TriangleMesh3D mesh) |
Initializes a copy of the TriangleMesh3D instance mesh. More... | |
TriangleMesh3D | assign (TriangleMesh3D mesh) |
Replaces the current state of self with a copy of the state of the TriangleMesh3D instance mesh. More... | |
Math.Vector3DArray | getVertices () |
None | addVertex (float x, float y, float z) |
int | getNumVertices () |
Math.Vector3DArray | getVertexNormals () |
None | addVertexNormal (float x, float y, float z) |
int | getNumVertexNormals () |
Math.Vector3ULArray | getFaces () |
None | addFace (int v1_idx, int v2_idx, int v3_idx) |
int | getNumFaces () |
bool | isSolid () |
None | setSolid (bool solid=True) |
None | clear () |
TriangleMesh3D | swap (TriangleMesh3D mesh) |
TriangleMesh3D | __iadd__ (TriangleMesh3D mesh) |
Performs the in-place addition operation self += mesh . More... | |
![]() | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
Shape3D | clone () |
Creates a dynamically allocated copy of the graphics primitive. More... | |
None | accept (Shape3DVisitor visitor) |
Vis.Shape3DVisitor implementation accept method [VPTN]. More... | |
Properties | |
vertices = property(getVertices) | |
numVertices = property(getNumVertices) | |
vertexNormals = property(getVertexNormals) | |
numVertexNormals = property(getNumVertexNormals) | |
faces = property(getFaces) | |
numFaces = property(getNumFaces) | |
solid = property(isSolid, setSolid) | |
![]() | |
objectID = property(getObjectID) | |
Data structure for describing the geometric shape of 3D objects by means of a triangle mesh.
None CDPL.Vis.TriangleMesh3D.__init__ | ( | TriangleMesh3D | mesh | ) |
Initializes a copy of the TriangleMesh3D instance mesh.
mesh | The TriangleMesh3D instance to copy. |
TriangleMesh3D CDPL.Vis.TriangleMesh3D.assign | ( | TriangleMesh3D | mesh | ) |
Replaces the current state of self with a copy of the state of the TriangleMesh3D
instance mesh.
mesh | The TriangleMesh3D instance to copy. |
Math.Vector3DArray CDPL.Vis.TriangleMesh3D.getVertices | ( | ) |
None CDPL.Vis.TriangleMesh3D.addVertex | ( | float | x, |
float | y, | ||
float | z | ||
) |
x | |
y | |
z |
int CDPL.Vis.TriangleMesh3D.getNumVertices | ( | ) |
Math.Vector3DArray CDPL.Vis.TriangleMesh3D.getVertexNormals | ( | ) |
None CDPL.Vis.TriangleMesh3D.addVertexNormal | ( | float | x, |
float | y, | ||
float | z | ||
) |
x | |
y | |
z |
int CDPL.Vis.TriangleMesh3D.getNumVertexNormals | ( | ) |
Math.Vector3ULArray CDPL.Vis.TriangleMesh3D.getFaces | ( | ) |
None CDPL.Vis.TriangleMesh3D.addFace | ( | int | v1_idx, |
int | v2_idx, | ||
int | v3_idx | ||
) |
v1_idx | |
v2_idx | |
v3_idx |
int CDPL.Vis.TriangleMesh3D.getNumFaces | ( | ) |
bool CDPL.Vis.TriangleMesh3D.isSolid | ( | ) |
None CDPL.Vis.TriangleMesh3D.setSolid | ( | bool | solid = True | ) |
solid |
TriangleMesh3D CDPL.Vis.TriangleMesh3D.swap | ( | TriangleMesh3D | mesh | ) |
mesh |
TriangleMesh3D CDPL.Vis.TriangleMesh3D.__iadd__ | ( | TriangleMesh3D | mesh | ) |
Performs the in-place addition operation self += mesh
.
mesh | Specifies the second addend. |
TriangleMesh3D
instance self.