SPH
|
Container of points with optimized search queries. More...
#include <PointCloud.h>
Classes | |
class | Handle |
Identifies a point in the point cloud. More... | |
Public Member Functions | |
PointCloud (const Float cellSize) | |
Handle | push (const Vector &p) |
Adds a point into the cloud. More... | |
void | push (ArrayView< const Vector > points) |
Adds a set of points into the cloud. More... | |
Vector | point (const Handle &handle) const |
Returns the point corresponding to given handle. More... | |
Array< Vector > | array () const |
Returns all points in the cloud as array. More... | |
Size | size () const |
Returns the number of points in the cloud. More... | |
Size | getClosePointsCount (const Vector ¢er, const Float radius) const |
Returns the number of points within given distance from the center point. More... | |
void | findClosePoints (const Vector ¢er, const Float radius, Array< Handle > &handles) const |
Returns point within given distance from the center point. More... | |
void | findClosePoints (const Vector ¢er, const Float radius, Array< Vector > &neighs) const |
Returns point within given distance from the center point. More... | |
![]() | |
Noncopyable ()=default | |
Noncopyable (const Noncopyable &)=delete | |
Noncopyable (Noncopyable &&)=default | |
Noncopyable & | operator= (const Noncopyable &)=delete |
Noncopyable & | operator= (Noncopyable &&)=default |
Container of points with optimized search queries.
Works similarly to HashMapFinder, but does not require rebuilding the structure when the set of points changes.
Definition at line 13 of file PointCloud.h.
|
inlineexplicit |
Definition at line 55 of file PointCloud.h.
Returns all points in the cloud as array.
Definition at line 23 of file PointCloud.cpp.
void PointCloud::findClosePoints | ( | const Vector & | center, |
const Float | radius, | ||
Array< Handle > & | handles | ||
) | const |
Returns point within given distance from the center point.
Definition at line 45 of file PointCloud.cpp.
void PointCloud::findClosePoints | ( | const Vector & | center, |
const Float | radius, | ||
Array< Vector > & | neighs | ||
) | const |
Returns point within given distance from the center point.
Definition at line 52 of file PointCloud.cpp.
Returns the number of points within given distance from the center point.
Definition at line 37 of file PointCloud.cpp.
Returns the point corresponding to given handle.
Definition at line 19 of file PointCloud.cpp.
Adds a set of points into the cloud.
Definition at line 13 of file PointCloud.cpp.
NAMESPACE_SPH_BEGIN PointCloud::Handle PointCloud::push | ( | const Vector & | p | ) |
Adds a point into the cloud.
Definition at line 5 of file PointCloud.cpp.
Size PointCloud::size | ( | ) | const |
Returns the number of points in the cloud.
Definition at line 33 of file PointCloud.cpp.