Post-processed klee::Shape, with the geometry discretized and transformed according to the Shape's operators.
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/quest/DiscreteShape.hpp>
Post-processed klee::Shape, with the geometry discretized and transformed according to the Shape's operators.
TODO: Move this class into internal namespace.
◆ RefinementType
◆ Point3D
◆ Vector3D
◆ TetType
◆ OctType
◆ HexType
◆ TetMesh
◆ DiscreteShape()
Constructor.
- Parameters
-
| shape | The Klee specifications for the shape. |
| parentGroup | Group under which to put the discrete mesh and support blueprint-tets shapes. If null, don't use sidre and don't support blueprint-tets. |
| prefixPath | Path prefix for shape from a file specified with a relative path. |
Refinement type is set to DiscreteShape::RefinementUniformSegments and percent error is set to 0. See setPercentError() and setRefinementType().
◆ ~DiscreteShape()
| virtual axom::quest::DiscreteShape::~DiscreteShape |
( |
| ) |
|
|
inlinevirtual |
◆ setPrefixPath()
| void axom::quest::DiscreteShape::setPrefixPath |
( |
const std::string & |
prefixPath | ) |
|
Set prefix for shape files specified as relative path.
◆ setRefinementType()
| void axom::quest::DiscreteShape::setRefinementType |
( |
RefinementType |
refinementType | ) |
|
|
inline |
Set the refinement type. Refinement type is used for shaping with C2C contours.
◆ setSamplesPerKnotSpan()
| void axom::quest::DiscreteShape::setSamplesPerKnotSpan |
( |
int |
nSamples | ) |
|
◆ setVertexWeldThreshold()
| void axom::quest::DiscreteShape::setVertexWeldThreshold |
( |
double |
threshold | ) |
|
◆ setPercentError()
| void axom::quest::DiscreteShape::setPercentError |
( |
double |
percent | ) |
|
Set the percentage error tolerance.
If percent <= MINIMUM_PERCENT_ERROR, the refinement type will change to DiscreteShape::RefinementUniformSegments.
◆ getShape()
Get the name of this shape.
- Returns
- the shape's name
◆ createMeshRepresentation()
| std::shared_ptr<mint::Mesh> axom::quest::DiscreteShape::createMeshRepresentation |
( |
| ) |
|
Get the discrete mesh representation.
If the sidre parent group was used in the constructor, the mesh data is stored under that group.
If the discrete mesh isn't generated yet (for analytical shapes), generate it.
◆ getMeshRepresentation()
| std::shared_ptr<mint::Mesh> axom::quest::DiscreteShape::getMeshRepresentation |
( |
| ) |
const |
|
inline |
Get the discrete mesh representation.
◆ getRevolvedVolume()
| double axom::quest::DiscreteShape::getRevolvedVolume |
( |
| ) |
const |
|
inline |
Get the revolved volume for volumes of revolution, which is non-zero only for shapes from C2C contours.
◆ createRepresentationOfBlueprintTets()
| void axom::quest::DiscreteShape::createRepresentationOfBlueprintTets |
( |
| ) |
|
Create the internal mesh representation of the user's tet mesh.
◆ createRepresentationOfTet()
| void axom::quest::DiscreteShape::createRepresentationOfTet |
( |
| ) |
|
Create the internal mesh representation of the analytical tetrahedron.
◆ createRepresentationOfHex()
| void axom::quest::DiscreteShape::createRepresentationOfHex |
( |
| ) |
|
Create the internal mesh representation of the analytical hexahedron.
◆ createRepresentationOfPlane()
| void axom::quest::DiscreteShape::createRepresentationOfPlane |
( |
| ) |
|
Create the internal mesh representation of the analytical plane.
◆ createRepresentationOfSphere()
| void axom::quest::DiscreteShape::createRepresentationOfSphere |
( |
| ) |
|
Create the internal mesh representation of the analytical sphere.
◆ createRepresentationOfSOR()
| void axom::quest::DiscreteShape::createRepresentationOfSOR |
( |
| ) |
|
Create the internal mesh representation of the analytical SOR.
◆ DEFAULT_SAMPLES_PER_KNOT_SPAN
| constexpr int axom::quest::DiscreteShape::DEFAULT_SAMPLES_PER_KNOT_SPAN {25} |
|
staticconstexpr |
◆ MINIMUM_PERCENT_ERROR
| constexpr double axom::quest::DiscreteShape::MINIMUM_PERCENT_ERROR {0.} |
|
staticconstexpr |
◆ MAXIMUM_PERCENT_ERROR
| constexpr double axom::quest::DiscreteShape::MAXIMUM_PERCENT_ERROR {100.} |
|
staticconstexpr |
◆ DEFAULT_VERTEX_WELD_THRESHOLD
| constexpr double axom::quest::DiscreteShape::DEFAULT_VERTEX_WELD_THRESHOLD {1e-9} |
|
staticconstexpr |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/quest/DiscreteShape.hpp