Factory class to generate different types of basic shapes. More...
#include <pmp/algorithms/SurfaceFactory.h>
Static Public Member Functions | |
static SurfaceMesh | tetrahedron () |
Generate tetrahedron. | |
static SurfaceMesh | hexahedron () |
Generate hexahedron. | |
static SurfaceMesh | octahedron () |
Generate octahedron. | |
static SurfaceMesh | dodecahedron () |
Generate dodecahedron. | |
static SurfaceMesh | icosahedron () |
Generate icosahedron. | |
static SurfaceMesh | icosphere (size_t n_subdivisions=3) |
Generate icosphere refined by n_subdivisions . More... | |
static SurfaceMesh | quad_sphere (size_t n_subdivisions=3) |
Generate quad sphere refined by n_subdivisions . More... | |
static SurfaceMesh | uv_sphere (const Point ¢er=Point(0, 0, 0), Scalar radius=1.0, size_t n_slices=15, size_t n_stacks=15) |
Generate UV sphere with given center , radius , n_slices , and n_stacks . | |
Factory class to generate different types of basic shapes.
|
static |
Generate icosphere refined by n_subdivisions
.
Uses Loop subdivision to refine the initial icosahedron.
|
static |
Generate quad sphere refined by n_subdivisions
.
Uses Catmull-Clark subdivision to refine the initial hexahedron.