A templated class that simplifies a geometric cell into simplices (triangles or tetrahedra).
More...
|
| template<typename T = void, typename = std::enable_if_t<Dim == 2, T>> |
| | Simplexify (const geometry::Cell< 2, float_t, index_t > &cell, bool=false) |
| | Constructs a simplexification for the given geometric cell.
|
| template<typename T = void, typename = std::enable_if_t<Dim == 3, T>> |
| | Simplexify (const geometry::Cell< 3, float_t, index_t > &cell, bool reconstruct_boundaries=false) |
| | Constructs a simplexification for the given geometric cell.
|
| auto | getSubsimplexesListFacet (index_t face_id) const |
| | List the sub-simplexes (segments in 2D or triangles in 3D) that make a certain face in the simplixification.
|
| index_t | getNumPoints () const |
| | Gets the number of points in the simplexification.
|
| index_t | getNumSimplexes () const |
| | Gets the number of simplices in the simplexification.
|
| const PointsViewType & | getPointList () const |
| | Gets the list of points in the simplexification.
|
| const SimplexesViewType & | getSimplexesList () const |
| | Gets the list of simplices in the simplexification.
|
template<std::size_t Dim, typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
class vulpes::geometry::Simplexify< Dim, typename >
A templated class that simplifies a geometric cell into simplices (triangles or tetrahedra).
This class provides a unified interface for performing either 2D triangulation or 3D tetrahedralization, depending on the dimension (Dim) of the input cell. It leverages the Triangulation class for 2D cases and the Tetrahedralization class for 3D cases.
- Template Parameters
-
| Dim | The dimension of the input cell. Must be 2 (for 2D) or 3 (for 3D). |
| Enable | SFINAE helper to restrict the template parameter to valid dimensions. |
template<std::size_t Dim, typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
template<typename T = void, typename = std::enable_if_t<Dim == 3, T>>
Constructs a simplexification for the given geometric cell.
The appropriate simplexification engine (Triangulation or Tetrahedralization) is initialized based on the dimension of the input cell.
- Parameters
-
| cell | A geometric cell to be simplexified, represented by geometry::Cell<Dim, float_t, index_t>. |
| reconstruct_boundaries | Boolean indicating the necessity to find which faces of the tetrahedrons belong to the boundary of the cell |
template<std::size_t Dim, typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
Gets the list of simplices in the simplexification.
Depending on the dimension, this corresponds to:
- A list of triangles (for 2D).
- A list of tetrahedra (for 3D).
The simplices are represented as an appropriate container or view type (SimplexesViewType) based on the underlying simplexification engine.
- Returns
- A reference to a view of the simplex list.