Visual Computing Library
|
List of Mesh Creation algorithms. More...
Classes | |
struct | vcl::CreateSphereArgs |
The CreateSphereArgs structs contains a series of parameters to generate a sphere. More... | |
Functions | |
template<PolygonMeshConcept MeshType, LoggerConcept LogType = NullLogger> | |
MeshType | vcl::createDodecahedron (LogType &log=nullLogger) |
Creates and returns a Polygon Mesh containing a Dodecahedron. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createHexahedron () |
Creates and returns a hexahedron having as extremes the points (-1, -1, -1) and (1, 1, 1) . | |
template<FaceMeshConcept MeshType, Point3Concept CoordType> | |
MeshType | vcl::createHexahedron (const CoordType &min, const CoordType &max) |
Creates and returns a Hexahedron having as extremes points min and max given as arguments. | |
template<FaceMeshConcept MeshType, Point3Concept CoordType> | |
MeshType | vcl::createCube (const CoordType &min, double edgeLength) |
Creates and returns a Cube having min as minimum extreme and the given edge length. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createCube () |
Creates and returns a Cube having (-0.5, -0.5, -0.5) as minimum extreme and 1 length. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createIcosahedron (bool normalizeVertices=false) |
Creates and returns an icosahedron mesh. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphereUV (const SphereConcept auto &sp, uint parallels=10, uint meridians=20) |
Creates and returns a sphere mesh using the UV mode, starting from a sphere object. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphereNormalizedCube (const SphereConcept auto &sp, uint divisions) |
Creates and returns a sphere mesh using the normalized cube mode, starting from a sphere object. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphereSpherifiedCube (const SphereConcept auto &sp, uint divisions) |
Creates and returns a sphere mesh using the spherified cube mode, starting from a sphere object. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphereIcosahedron (const SphereConcept auto &sp, uint divisions) |
Creates and returns a sphere mesh using the icosahedron mode, starting from a sphere object. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphere (const SphereConcept auto &sp, const CreateSphereArgs &args=CreateSphereArgs()) |
Creates a Sphere Mesh starting from a sphere object, using the generation method given in the argument args.mode (see https://github.com/caosdoar/spheres for more details). | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createSphere () |
Creates a Sphere Mesh using the UV mode (https://github.com/caosdoar/spheres), centered in (0, 0, 0), having radius 1, with 10 parallels and 20 meridias. | |
template<FaceMeshConcept MeshType> | |
MeshType | vcl::createTetrahedron () |
Creates a simple tetrahedron mesh with the following point coordinates: | |
template<FaceMeshConcept MeshType, Point3Concept CoordType> | |
MeshType | vcl::createTetrahedron (const CoordType &p0, const CoordType &p1, const CoordType &p2, const CoordType &p3) |
createTetrahedron createTetrahedron creates a simple tetrahedron mesh with the given points. The function assumes that the points p0, p1 and p2 are in counterclockwise order, and does not perform any sanity check about the validity of the points. | |
List of Mesh Creation algorithms.
You can access these algorithms by including #include <vclib/algorithms/mesh/create.h>
MeshType vcl::createCube | ( | ) |
Creates and returns a Cube having (-0.5, -0.5, -0.5)
as minimum extreme and 1 length.
If the mesh is composed of triangles, the the returned mesh is already triangulated. If the mesh is composed of quads or polygons, a mesh containing 6 quads will be returned.
(0, 0, 0)
and with edge length 1. MeshType vcl::createCube | ( | const CoordType & | min, |
double | edgeLength | ||
) |
Creates and returns a Cube having min
as minimum extreme and the given edge length.
If the mesh is composed of triangles, the the returned mesh is already triangulated. If the mesh is composed of quads or polygons, a mesh containing 6 quads will be returned.
[min, min+edgeLength]
Cube. MeshType vcl::createDodecahedron | ( | LogType & | log = nullLogger | ) |
Creates and returns a Polygon Mesh containing a Dodecahedron.
Creates and returns a Triangle Mesh containing a triangulated Dodecahedron.
The returned mesh will contain 12 pentagons.
If the mesh is composed of triangles, the the returned mesh is already triangulated. If the mesh is polygonal, a mesh containing 12 pentagons will be returned.
MeshType vcl::createHexahedron | ( | ) |
Creates and returns a hexahedron having as extremes the points (-1, -1, -1)
and (1, 1, 1)
.
If the mesh is composed of triangles, the the returned mesh is already triangulated. If the mesh is composed of quads or polygons, a mesh containing 6 quads will be returned.
[(-1, -1, -1), (1, 1, 1)]
Hexahedron . MeshType vcl::createHexahedron | ( | const CoordType & | min, |
const CoordType & | max | ||
) |
Creates and returns a Hexahedron having as extremes points min and max given as arguments.
If the mesh is composed of triangles, the the returned mesh is already triangulated. If the mesh is composed of quads or polygons, a mesh containing 6 quads will be returned.
[min, max]
Hexahedron. MeshType vcl::createIcosahedron | ( | bool | normalizeVertices = false | ) |
Creates and returns an icosahedron mesh.
MeshType | The type of the mesh to create, it must satisfy the FaceMeshConcept. |
[in] | normalizeVertices | If true, the vertices are normalized. |
MeshType vcl::createSphere | ( | ) |
Creates a Sphere Mesh using the UV mode (https://github.com/caosdoar/spheres), centered in (0, 0, 0), having radius 1, with 10 parallels and 20 meridias.
MeshType | the type of the mesh to be generated, it must satisfy the FaceMeshConcept. |
MeshType vcl::createSphere | ( | const SphereConcept auto & | sp, |
const CreateSphereArgs & | args = CreateSphereArgs() |
||
) |
Creates a Sphere Mesh starting from a sphere object, using the generation method given in the argument args.mode
(see https://github.com/caosdoar/spheres for more details).
MeshType | the type of the mesh to be generated, it must satisfy the FaceMeshConcept. |
[in] | sp | A sphere object (its type must satisfy the SphereConcept). |
[in] | args | Arguments for the sphere generation. |
MeshType vcl::createSphereIcosahedron | ( | const SphereConcept auto & | sp, |
uint | divisions | ||
) |
Creates and returns a sphere mesh using the icosahedron mode, starting from a sphere object.
MeshType | The type of the mesh to create, it must satisfy the FaceMeshConcept. |
[in] | sp | A sphere object (its type must satisfy the SphereConcept). |
[in] | divisions | The number of divisions in the returned sphere mesh. |
MeshType vcl::createSphereNormalizedCube | ( | const SphereConcept auto & | sp, |
uint | divisions | ||
) |
Creates and returns a sphere mesh using the normalized cube mode, starting from a sphere object.
MeshType | The type of the mesh to create, it must satisfy the FaceMeshConcept. |
[in] | sp | A sphere object (its type must satisfy the SphereConcept). |
[in] | divisions | The number of divisions in the returned sphere mesh. |
MeshType vcl::createSphereSpherifiedCube | ( | const SphereConcept auto & | sp, |
uint | divisions | ||
) |
Creates and returns a sphere mesh using the spherified cube mode, starting from a sphere object.
MeshType | The type of the mesh to create, it must satisfy the FaceMeshConcept. |
[in] | sp | A sphere object (its type must satisfy the SphereConcept). |
[in] | divisions | The number of divisions in the returned sphere mesh. |
MeshType vcl::createSphereUV | ( | const SphereConcept auto & | sp, |
uint | parallels = 10 , |
||
uint | meridians = 20 |
||
) |
Creates and returns a sphere mesh using the UV mode, starting from a sphere object.
MeshType | The type of the mesh to create, it must satisfy the FaceMeshConcept. |
[in] | sp | A sphere object (its type must satisfy the SphereConcept). |
[in] | parallels | The number of parallels in the returned sphere mesh. |
[in] | meridians | The number of meridians in the returned sphere mesh. |
MeshType vcl::createTetrahedron | ( | ) |
Creates a simple tetrahedron mesh with the following point coordinates:
MeshType | the type of the mesh to be generated, it must satisfy the FaceMeshConcept. |
MeshType vcl::createTetrahedron | ( | const CoordType & | p0, |
const CoordType & | p1, | ||
const CoordType & | p2, | ||
const CoordType & | p3 | ||
) |
createTetrahedron createTetrahedron creates a simple tetrahedron mesh with the given points. The function assumes that the points p0, p1 and p2 are in counterclockwise order, and does not perform any sanity check about the validity of the points.
MeshType | the type of the mesh to be generated, it must satisfy the FaceMeshConcept. |
CoordType | the type of the coordinates of the points, it must satisfy the Point3Concept. |
[in] | p0 | the first point of the tetrahedron. |
[in] | p1 | the second point of the tetrahedron. |
[in] | p2 | the third point of the tetrahedron. |
[in] | p3 | the fourth point of the tetrahedron. |