35 #ifndef DualOctree_HPP_ 36 #define DualOctree_HPP_ 38 #include <boost/thread.hpp> 44 template<
typename BaseVecT,
typename BoxT>
83 BaseVecT positions[]);
137 #include "DualOctree.tcc"
uint getIntersection(char i)
Returns the stored intersection between the cell and the surface at a given edge. ...
void getVertices(BaseVecT corners[])
Returns edges of the voxel.
BaseVecT & getMiddle()
Returns the middle of the represented voxel.
DualLeaf(BaseVecT vertices[])
Constructor.
void setIntersection(char i, uint value)
Sets the intersection between the cell and the surface at a given edge.
int getIndex(float distances[])
Calculates and returns the bit-pattern respectively index from the edges of the represented voxel for...
void getIntersections(BaseVecT corners[], float distance[], BaseVecT positions[])
Calculates the twelve possible intersections between the cell and the surface to interpolate.
virtual ~DualLeaf()
Destructor (virtual)
float calcIntersection(float x1, float x2, float d1, float d2)
Interpolates the intersection between x1 and x1.
BaseVecT getIntersectionPoint(float intersection, BaseVecT corner_one, BaseVecT corner_two)