Geometry¶
Cube¶
-
class
Py3DViewer.geometry.Cube.Cube(scale=1)[source]¶ Bases:
objectThis class stores information about the geometry and the topology of a cube of given size (default 1). A cube object can be easily turned into a surface or volumetric mesh (see vertices and topology_ properties).
-
topology_hex¶ The hexaedron representing the cube mesh
Type: Return Type: Array(1x8)
-
topology_quad¶ The six quads composing the cube mesh
Type: Return Type: Array(6x4)
-
topology_tet¶ The five tetrahedra composing the cube mesh
Type: Return Type: Array(1x8)
-
topology_tris¶ The 12 triangles composing the cube mesh
Type: Return Type: Array(12x3)
-
vertices¶ The 8 vertices of the cube
Type: Return Type: Array(8x3)
-