Elementary Shape Representation of a Prism with triangular basis. More...
#include <BasicShapes.hpp>


Additional Inherited Members | |
Protected Member Functions inherited from mimmo::BasicShape | |
| darray3E | checkNearestPointToAABBox (const darray3E &point, const darray3E &bMin, const darray3E &bMax) |
| uint32_t | intersectShapePlane (int level, const darray3E &target) |
| void | swap (BasicShape &) noexcept |
Static Protected Member Functions inherited from mimmo::BasicShape | |
| static dmatrix33E | inverse (const dmatrix33E &mat) |
| static darray3E | matmul (const darray3E &vec, const dmatrix33E &mat) |
| static darray3E | matmul (const dmatrix33E &mat, const darray3E &vec) |
| static dmatrix33E | transpose (const dmatrix33E &mat) |
Protected Attributes inherited from mimmo::BasicShape | |
| dvecarr3E | m_bbox |
| darray3E | m_infLimits |
| darray3E | m_origin |
| darray3E | m_scaling |
| dmatrix33E | m_sdr |
| dmatrix33E | m_sdr_inverse |
| ShapeType | m_shape |
| darray3E | m_span |
| std::array< CoordType, 3 > | m_typeCoord |
Detailed Description
Elementary Shape Representation of a Prism with triangular basis.
Volumetric Core Element, shaped as a triangular prism, directly derived from BasicShape class. Local reference system is an elemental cube with x[0,1], y[0,1], z[-0.5,0.5] obtained by Duffy transformation. Basic reference system is the elemental cube x[0,1], y[0,1], z[0,1];
Definition at line 357 of file BasicShapes.hpp.
Constructor & Destructor Documentation
◆ Wedge() [1/3]
| mimmo::Wedge::Wedge | ( | ) |
Basic Constructor
Definition at line 1671 of file BasicShapes.cpp.
◆ Wedge() [2/3]
Custom Constructor. Set shape origin and its span, ordered as width of the triangular basis, height of triangular basis and depth.
- Parameters
-
[in] origin point origin in global reference system [in] span span in each shape local coordinate x,y,z;
Definition at line 1682 of file BasicShapes.cpp.
◆ ~Wedge()
| mimmo::Wedge::~Wedge | ( | ) |
Basic Destructor
Definition at line 1689 of file BasicShapes.cpp.
◆ Wedge() [3/3]
| mimmo::Wedge::Wedge | ( | const Wedge & | other | ) |
Copy Constructor
- Parameters
-
[in] other Wedge object where copy from
Definition at line 1696 of file BasicShapes.cpp.
Member Function Documentation
◆ getLocalOrigin()
|
virtual |
- Returns
- local origin of your primitive shape
Implements mimmo::BasicShape.
Definition at line 1772 of file BasicShapes.cpp.
◆ intersectShapeAABBox()
Check if current shape intersects or is totally contained into the given Axis Aligned Bounding Box
- Parameters
-
[in] bMin inferior extremal point of the AABB [in] bMax superior extremal point of the AABB
- Returns
- true if intersects, false otherwise
TODO NEED TO BE OPTIMIZED!
Implements mimmo::BasicShape.
Definition at line 1875 of file BasicShapes.cpp.
◆ toLocalCoord()
Transform point from world coordinate system, to local reference system of the shape.
- Parameters
-
[in] point target
- Returns
- transformed point
Implements mimmo::BasicShape.
Definition at line 1736 of file BasicShapes.cpp.
◆ toWorldCoord()
Transform point from local reference system of the shape, to world reference system.
- Parameters
-
[in] point target
- Returns
- transformed point
Implements mimmo::BasicShape.
Definition at line 1705 of file BasicShapes.cpp.
The documentation for this class was generated from the following files:
- src/core/BasicShapes.hpp
- src/core/BasicShapes.cpp
1.8.17
Public Member Functions inherited from