pmp-library  1.2.1

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 &center=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.
 

Detailed Description

Factory class to generate different types of basic shapes.

Member Function Documentation

◆ icosphere()

SurfaceMesh icosphere ( size_t  n_subdivisions = 3)
static

Generate icosphere refined by n_subdivisions .

Uses Loop subdivision to refine the initial icosahedron.

See also
SurfaceSubdivision

◆ quad_sphere()

SurfaceMesh quad_sphere ( size_t  n_subdivisions = 3)
static

Generate quad sphere refined by n_subdivisions .

Uses Catmull-Clark subdivision to refine the initial hexahedron.

See also
SurfaceSubdivision