14 : m_globalIterator(0),
17 m_size(
size == 0 && associatedSet ? static_cast<unsigned>(m_set->
size())
19 assert(associatedSet);
33 for (
unsigned i = 1; i <
count; ++i) {
67 for (
unsigned i = 0; i <
count; ++i) {
69 ScalarType sqDist =
static_cast<ScalarType
>(
m_set->at(i).squareDistd);
70 action(*
m_set->at(i).point, sqDist);
71 m_set->at(i).squareDistd =
static_cast<double>(sqDist);
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the cloud bounding box.
void forEach(genericPointAction action) override
Fast iteration mechanism.
unsigned size() const override
Returns the number of points.
CCVector3 m_bbMin
Bounding-box min corner.
DgmOctreeReferenceCloud(DgmOctree::NeighboursSet *associatedSet, unsigned count=0)
Default constructor.
virtual void computeBB()
Computes the cloud bounding-box (internal)
bool m_validBB
Bounding-box validity.
DgmOctree::NeighboursSet * m_set
Associated PointDescriptor set.
CCVector3 m_bbMax
Bounding-box max corner.
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
std::function< void(const CCVector3 &, ScalarType &)> genericPointAction
Generic function applied to a point (used by foreach)
Generic file read and write utility for python interface.