#include <DualOctree.hpp>
|
| | DualLeaf (BaseVecT vertices[]) |
| | Constructor. More...
|
| |
| int | getIndex (float distances[]) |
| | Calculates and returns the bit-pattern respectively index from the edges of the represented voxel for the MC-Table. More...
|
| |
| uint | getIntersection (char i) |
| | Returns the stored intersection between the cell and the surface at a given edge. More...
|
| |
| BaseVecT | getIntersectionPoint (float intersection, BaseVecT corner_one, BaseVecT corner_two) |
| |
| BaseVecT | getIntersectionPoint (BaseVecT corner_one, float intersection, BaseVecT corner_two) |
| |
| BaseVecT | getIntersectionPoint (BaseVecT corner_one, BaseVecT corner_two, float intersection) |
| |
| void | getIntersections (BaseVecT corners[], float distance[], BaseVecT positions[]) |
| | Calculates the twelve possible intersections between the cell and the surface to interpolate. More...
|
| |
| BaseVecT & | getMiddle () |
| | Returns the middle of the represented voxel. More...
|
| |
| void | getVertices (BaseVecT corners[]) |
| | Returns edges of the voxel. More...
|
| |
| void | setIntersection (char i, uint value) |
| | Sets the intersection between the cell and the surface at a given edge. More...
|
| |
| virtual | ~DualLeaf () |
| | Destructor (virtual) More...
|
| |
|
| float | calcIntersection (float x1, float x2, float d1, float d2) |
| | Interpolates the intersection between x1 and x1. More...
|
| |
template<typename BaseVecT, typename BoxT>
class lvr2::DualLeaf< BaseVecT, BoxT >
Definition at line 45 of file DualOctree.hpp.
◆ DualLeaf()
template<typename BaseVecT, typename BoxT>
Constructor.
- Parameters
-
| middle | Center of the voxel |
◆ ~DualLeaf()
template<typename BaseVecT, typename BoxT>
◆ calcIntersection()
template<typename BaseVecT, typename BoxT>
| float lvr2::DualLeaf< BaseVecT, BoxT >::calcIntersection |
( |
float |
x1, |
|
|
float |
x2, |
|
|
float |
d1, |
|
|
float |
d2 |
|
) |
| |
|
protected |
Interpolates the intersection between x1 and x1.
- Parameters
-
| x1 | First coordinate. |
| x2 | Second coordinate. |
| d1 | Distance value for the first coordinate. |
| d2 | Distance value for the second coordinate. |
- Returns
- Interpolated distance.
◆ getIndex()
template<typename BaseVecT, typename BoxT>
Calculates and returns the bit-pattern respectively index from the edges of the represented voxel for the MC-Table.
- Parameters
-
| distances | Distances of the eight edges. |
- Returns
- Index for the MC-Table.
◆ getIntersection()
template<typename BaseVecT, typename BoxT>
Returns the stored intersection between the cell and the surface at a given edge.
- Parameters
-
◆ getIntersectionPoint() [1/3]
template<typename BaseVecT, typename BoxT>
| BaseVecT lvr2::DualLeaf< BaseVecT, BoxT >::getIntersectionPoint |
( |
float |
intersection, |
|
|
BaseVecT |
corner_one, |
|
|
BaseVecT |
corner_two |
|
) |
| |
◆ getIntersectionPoint() [2/3]
template<typename BaseVecT, typename BoxT>
| BaseVecT lvr2::DualLeaf< BaseVecT, BoxT >::getIntersectionPoint |
( |
BaseVecT |
corner_one, |
|
|
float |
intersection, |
|
|
BaseVecT |
corner_two |
|
) |
| |
◆ getIntersectionPoint() [3/3]
template<typename BaseVecT, typename BoxT>
| BaseVecT lvr2::DualLeaf< BaseVecT, BoxT >::getIntersectionPoint |
( |
BaseVecT |
corner_one, |
|
|
BaseVecT |
corner_two, |
|
|
float |
intersection |
|
) |
| |
◆ getIntersections()
template<typename BaseVecT, typename BoxT>
| void lvr2::DualLeaf< BaseVecT, BoxT >::getIntersections |
( |
BaseVecT |
corners[], |
|
|
float |
distance[], |
|
|
BaseVecT |
positions[] |
|
) |
| |
Calculates the twelve possible intersections between the cell and the surface to interpolate.
- Parameters
-
| corners | Eight corners of the current cell. |
| distance | Corresponding distance value. |
| positions | Interpolated intersections. |
◆ getMiddle()
template<typename BaseVecT, typename BoxT>
Returns the middle of the represented voxel.
- Returns
- Middle of the represented voxel.
◆ getVertices()
template<typename BaseVecT, typename BoxT>
| void lvr2::DualLeaf< BaseVecT, BoxT >::getVertices |
( |
BaseVecT |
corners[] | ) |
|
Returns edges of the voxel.
- Parameters
-
| corner | Corners of the voxel. |
◆ setIntersection()
template<typename BaseVecT, typename BoxT>
Sets the intersection between the cell and the surface at a given edge.
- Parameters
-
| i | Index of the edge. |
| value | Value of the intersection. |
◆ m_intersections
template<typename BaseVecT, typename BoxT>
◆ m_vertices
template<typename BaseVecT, typename BoxT>
The documentation for this class was generated from the following file: