Chemical Data Processing Library Python API - Version 1.3.0
Public Member Functions | List of all members
CDPL.Vis.RightFrustumMesh3D Class Reference

A pre-defined triangle mesh providing the vertices and faces of a right frustum specified by the contructor arguments. More...

+ Inheritance diagram for CDPL.Vis.RightFrustumMesh3D:

Public Member Functions

None __init__ (float radius1, float radius2, float height, int num_sides, bool close_btm=True, bool close_top=True)
 Initializes the RightFrustumMesh3D instance. More...
 
None __init__ (RightFrustumMesh3D mesh)
 Initializes a copy of the RightFrustumMesh3D instance mesh. More...
 
- Public Member Functions inherited from CDPL.Vis.TriangleMesh3D
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...
 
- Public Member Functions inherited from CDPL.Vis.Shape3D
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...
 

Additional Inherited Members

- Properties inherited from CDPL.Vis.TriangleMesh3D
 vertices = property(getVertices)
 
 numVertices = property(getNumVertices)
 
 vertexNormals = property(getVertexNormals)
 
 numVertexNormals = property(getNumVertexNormals)
 
 faces = property(getFaces)
 
 numFaces = property(getNumFaces)
 
 solid = property(isSolid, setSolid)
 
- Properties inherited from CDPL.Vis.Shape3D
 objectID = property(getObjectID)
 

Detailed Description

A pre-defined triangle mesh providing the vertices and faces of a right frustum specified by the contructor arguments.

Since
1.3

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.Vis.RightFrustumMesh3D.__init__ ( float  radius1,
float  radius2,
float  height,
int  num_sides,
bool   close_btm = True,
bool   close_top = True 
)

Initializes the RightFrustumMesh3D instance.

Parameters
radius1
radius2
height
num_sides
close_btm
close_top

◆ __init__() [2/2]

None CDPL.Vis.RightFrustumMesh3D.__init__ ( RightFrustumMesh3D  mesh)

Initializes a copy of the RightFrustumMesh3D instance mesh.

Parameters
meshThe RightFrustumMesh3D instance to copy.