PointHashGridSearcher3.h
Go to the documentation of this file.
57 PointHashGridSearcher3(size_t resolutionX, size_t resolutionY, size_t resolutionZ, double gridSpacing);
void ForEachNearbyPoint(const Vector3D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
std::function< void(size_t, const Vector3D &)> ForEachNearbyPointFunc
Definition: PointNeighborSearcher3.h:34
void Build(const ConstArrayAccessor1< Vector3D > &points) override
Builds internal acceleration structure for given points list.
std::shared_ptr< PointNeighborSearcher3 > PointNeighborSearcher3Ptr
Shared pointer for the PointNeighborSearcher3 type.
Definition: PointNeighborSearcher3.h:79
PointNeighborSearcher3Ptr Clone() const override
Creates a new instance of the object with same properties than original.
Builder & WithGridSpacing(double gridSpacing)
Returns builder with grid spacing.
PointHashGridSearcher3 Build() const
Builds PointHashGridSearcher3 instance.
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
const std::vector< std::vector< size_t > > & GetBuckets() const
Returns the internal bucket.
PointHashGridSearcher3Ptr MakeShared() const
Builds shared pointer of PointHashGridSearcher3 instance.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
bool HasNearbyPoint(const Vector3D &origin, double radius) const override
PointHashGridSearcher3 & operator=(const PointHashGridSearcher3 &other)
Assignment operator.
Definition: pybind11Utils.h:24
Builder & WithResolution(const Size3 &resolution)
Returns builder with resolution.
void Add(const Vector3D &point)
Adds a single point to the hash grid.
Point3I GetBucketIndex(const Vector3D &position) const
Abstract base class for 3-D point neighbor searcher builders.
Definition: PointNeighborSearcher3.h:82
Hash grid-based 3-D point searcher.
Definition: PointHashGridSearcher3.h:26
Abstract base class for 3-D neighbor point searcher.
Definition: PointNeighborSearcher3.h:29
size_t GetHashKeyFromBucketIndex(const Point3I &bucketIndex) const
Front-end to create PointHashGridSearcher3 objects step by step.
Definition: PointHashGridSearcher3.h:168
#define CUBBYFLOW_NEIGHBOR_SEARCHER3_TYPE_NAME(DerivedClassName)
Definition: PointNeighborSearcher3.h:94
PointNeighborSearcher3Ptr BuildPointNeighborSearcher() const override
Returns shared pointer of PointHashGridSearcher3 type.
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
static Builder GetBuilder()
Returns builder fox PointHashGridSearcher3.
std::shared_ptr< PointHashGridSearcher3 > PointHashGridSearcher3Ptr
Shared pointer for the PointHashGridSearcher3 type.
Definition: PointHashGridSearcher3.h:163
void Set(const PointHashGridSearcher3 &other)
Copy from the other instance.
PointHashGridSearcher3(const Size3 &resolution, double gridSpacing)
Constructs hash grid with given resolution and grid spacing.