1 #ifndef FLATNORMALTHRESHPOINTCOMPATIBILITYFUNC_HEADER
2 #define FLATNORMALTHRESHPOINTCOMPATIBILITYFUNC_HEADER
13 m_distThresh(distThresh), m_normalThresh(normalThresh)
17 template <
class ShapeT,
class OctreeT>
19 operator()(
const ShapeT& shape,
const OctreeT& oct,
unsigned int i)
const
22 float distance = shape.DistanceAndNormal(oct.at(i), &
n);
25 return abs(
n.dot(oct.at(i).normal)) >= m_normalThresh;
33 return distance < m_distThresh &&
abs(normalDeviation) >= m_normalThresh;
45 return m_normalThresh;