PolyhedralMeshGenerator.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class PolyhedralMeshGenerator

Polyhedral mesh generator that uses CGAL. Volume and surfaces of polyhedra (closed surface) can be generated from polyhedra defined via polygonal facets.

static void generate(Mesh &mesh, const std::string off_file, double cell_size, bool detect_sharp_features = true)

Create volume mesh from Object File Format (.off) file

static void generate(Mesh &mesh, const std::vector<Point> &vertices, const std::vector<std::vector<std::size_t>> &facets, double cell_size, bool detect_sharp_features = true)

Create volume mesh from a collection of facets

static void generate_surface_mesh(Mesh &mesh, const std::vector<Point> &vertices, const std::vector<std::vector<std::size_t>> &facets, double cell_size, bool detect_sharp_features = true)

Create surface mesh from a collection of facets

static void generate_surface_mesh(Mesh &mesh, const std::string off_file, double cell_size, bool detect_sharp_features = true)

Create a surface mesh from Object File Format (.off) file

static void cgal_generate(Mesh &mesh, T &p, double cell_size, bool detect_sharp_features)

Create mesh from a CGAL polyhedron

static void cgal_generate_surface_mesh(Mesh &mesh, T &p, double cell_size, bool detect_sharp_features)

Create surface mesh from a CGAL polyhedron