41 "[CorePoints::prepare] Failed to compute the "
57 if (selectionParam <= 0.0 || selectionParam >= 1.0) {
59 "[CorePoints::prepare] Random subsampling ration must "
60 "be between 0 and 1 (excluded)");
65 origin, targetCount, progressCb);
82 "[CorePoints::prepare] Failed to subsampled the origin cloud");
91 "[CorePoints::prepare] Failed to subsampled the origin cloud "
92 "(not enough memory)");
float PointCoordinateType
Type of the coordinates of a (N-D) point.
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
virtual ccOctree::Shared computeOctree(cloudViewer::GenericProgressCallback *progressCb=nullptr, bool autoAddChild=true)
Computes the cloud octree.
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
ccPointCloud * partialClone(const cloudViewer::ReferenceCloud *selection, int *warnings=nullptr, bool withChildEntities=true) const
Creates a new point cloud object from a ReferenceCloud (selection)
unsigned size() const override
A very simple point cloud (no point duplication)
bool prepare(cloudViewer::GenericProgressCallback *progressCb=nullptr)
Prepares the selection (must be called once)
SubSamplingMethod selectionMethod
ccPointCloud * cloud
Core points cloud.
ccPointCloud * origin
Origin cloud.
QSharedPointer< cloudViewer::ReferenceCloud > selection