Description
Functions
Documentation
function
Rendering::MeshUtils::PlatonicSolids::createTetrahedron
Return a mesh containing a tetrahedron (4 vertices, 4 triangles). The tetrahedron is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Returns
Tetrahedron Mesh
Defined in Rendering/MeshUtils/PlatonicSolids.h:35
function
Rendering::MeshUtils::PlatonicSolids::createTetrahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:36
function
Rendering::MeshUtils::PlatonicSolids::addTetrahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:43
function
Rendering::MeshUtils::PlatonicSolids::createCube
Return a mesh containing a cube (8 vertices, 6 squares). The cube is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Returns
Cube Mesh
Defined in Rendering/MeshUtils/PlatonicSolids.h:52
function
Rendering::MeshUtils::PlatonicSolids::createCube
Defined in Rendering/MeshUtils/PlatonicSolids.h:53
function
Rendering::MeshUtils::PlatonicSolids::addCube
Defined in Rendering/MeshUtils/PlatonicSolids.h:60
function
Rendering::MeshUtils::PlatonicSolids::createOctahedron
Return a mesh containing an octahedron (6 vertices, 8 triangles). The octahedron is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Returns
Octahedron Mesh
Defined in Rendering/MeshUtils/PlatonicSolids.h:69
function
Rendering::MeshUtils::PlatonicSolids::createOctahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:70
function
Rendering::MeshUtils::PlatonicSolids::addOctahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:77
function
Rendering::MeshUtils::PlatonicSolids::createDodecahedron
Return a mesh containing a dodecahedron (20 vertices, 12 pentagons). Each face is split into three triangles (36 triangles overall). The dodecahedron is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Returns
Dodecahedron Mesh
Defined in Rendering/MeshUtils/PlatonicSolids.h:87
function
Rendering::MeshUtils::PlatonicSolids::createDodecahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:88
function
Rendering::MeshUtils::PlatonicSolids::addDodecahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:95
function
Rendering::MeshUtils::PlatonicSolids::createIcosahedron
Return a mesh containing an icosahedron (12 vertices, 20 triangles). The icosahredron is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Returns
Icosahedron Mesh
Defined in Rendering/MeshUtils/PlatonicSolids.h:104
function
Rendering::MeshUtils::PlatonicSolids::createIcosahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:105
function
Rendering::MeshUtils::PlatonicSolids::addIcosahedron
Defined in Rendering/MeshUtils/PlatonicSolids.h:112
function
Rendering::MeshUtils::PlatonicSolids::createEdgeSubdivisionSphere
Return a sphere which is generated by subdividing the edges of a platonic solid. A platonic solid with triangular faces is needed in this implementation. For each subdivision the number of triangles is quadrupled. The sphere is centered at the origin and the vertices are lying on the unit sphere. Positions and normals for the vertices are generated.
Parameters
- platonicSolid
- A tetrahedron, an octahedron, or an icosahedron.
- subdivisions
- Number of subdivision steps.
Returns
Subdivision Sphere Mesh , ornullptr
if the given platonic solid could not be used.
See also: createTetrahedron()
See also: createOctahedron()
See also: createIcosahedron()
Defined in Rendering/MeshUtils/PlatonicSolids.h:128