class
PolytopeBase class for all geometric elements of the mesh.
Derived classes
Public types
- enum class Type { Point, Segment, Triangle, Quadrilateral, Tetrahedron, TriangularPrism }
- The type of the Polytope geometry.
Public static variables
Constructors, destructors, conversion operators
Public functions
- auto getIndex() const -> Index
- Gets the index of the simplex in the mesh.
- auto getMesh() const -> const MeshBase&
- Gets the associated mesh to the simplex.
- auto getAttribute() const -> Attribute
- Gets the attribute of the simplex.
- auto getMeasure() const -> Real
- Gets the measure of the polytope.
Function documentation
Real Rodin:: Geometry:: Polytope:: getMeasure() const
Gets the measure of the polytope.
Returns | The measure of the polytope. |
---|
Gets the -dimensional measure of the polytope. This has different names in different dimensions. See table below.
Dimension of polytope | Measure |
---|---|
0 | Always zero |
1 | Length |
2 | Area |
3 | Volume |