35 #ifndef LVR2_RECONSTRUCTION_POINTSETSURFACE_HPP_ 36 #define LVR2_RECONSTRUCTION_POINTSETSURFACE_HPP_ 60 template<
typename BaseVecT>
74 virtual pair<typename BaseVecT::CoordType, typename BaseVecT::CoordType>
103 std::shared_ptr<SearchTree<BaseVecT>>
searchTree()
const;
160 template <
typename BaseVecT>
165 #include "PointsetSurface.tcc" void setKi(int k)
If k is > 0, each normal will be averaged with its k neighbors.
void setKn(int k)
Sets the size of the k-neighborhood that is used for normal estimation.
virtual PointBufferPtr pointBuffer() const
Returns the internal point buffer. After a call of calculateSurfaceNormals the buffer will contain no...
PointBufferPtr m_pointBuffer
The point cloud used for surface approximation.
An interface class to wrap all functionality that is needed to generate a surface approximation from ...
int m_ki
The number of points used for normal interpolation.
int m_kn
The number of points used for normal estimation.
void setKd(int k)
Sets the number of points that is used for distance evaluation, i.e. an average of the distance to th...
std::shared_ptr< PointBuffer > PointBufferPtr
A dynamic bounding box class.
int m_kd
The number of points used for distance function evaluation.
virtual Normal< float > getInterpolatedNormal(const BaseVecT &position) const
Interpolates a surface normal at the given position.
std::shared_ptr< SearchTree< BaseVecT > > m_searchTree
The search tree that is built from the point cloud data.
virtual pair< typename BaseVecT::CoordType, typename BaseVecT::CoordType > distance(BaseVecT v) const =0
Returns the distance of vertex v from the nearest tangent plane.
BoundingBox< BaseVecT > m_boundingBox
The bounding box of the point cloud.
std::shared_ptr< PointsetSurface< BaseVecT > > PointsetSurfacePtr
const BoundingBox< BaseVecT > & getBoundingBox() const
Returns the bounding box of the point set.
virtual void calculateSurfaceNormals()=0
Calculates surface normals for each data point in the given PointBuffeer. If the buffer alreay contai...
std::shared_ptr< SearchTree< BaseVecT > > searchTree() const
Returns a pointer to the search tree.