Template Class DualLeaf
Defined in File DualOctree.hpp
Class Documentation
-
template<typename BaseVecT, typename BoxT>
class DualLeaf Public Functions
-
inline virtual ~DualLeaf()
Destructor (virtual)
-
int getIndex(float distances[])
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.
-
void 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.
-
void getVertices(BaseVecT corners[])
Returns edges of the voxel.
- Parameters:
corner – Corners of the voxel.
-
uint getIntersection(char i)
Returns the stored intersection between the cell and the surface at a given edge.
- Parameters:
i – Index of the edge.
Protected Functions
-
float calcIntersection(float x1, float x2, float d1, float d2)
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.
-
inline virtual ~DualLeaf()