Class cell3d_t
Defined in File cell.hpp
Class Documentation
-
class cell3d_t
Class implementing a 3D cell, which can be used in spatial data structures like octrees or voxel grids.
Public Functions
-
cell3d_t() = default
Default constructor initializes an empty cell with zero bounds and _center.
-
inline cell3d_t(const array3D_t &minBound_, const array3D_t &maxBound_)
Constructs a cell with specified minimum and maximum bounds, and computes the _center.
- Parameters:
minBound_ – Minimum corner of the cell bounding box.
maxBound_ – Maximum corner of the cell bounding box.
-
inline void set_highlighted(const bool highlight_)
Set the state of the cell to highlighted or not
- Parameters:
highlight_ – New highlight flag used for visualization emphasis.
-
inline void set_point_count(const size_t count_)
Set the point count of the cell
- Parameters:
count_ – Number of map points currently assigned to this cell.
-
inline array3D_t get_center() const
Get _center of the cell
- Returns:
Center coordinate of the cell bounding box.
-
inline array3D_t get_min_bound() const
Get min bound of the cell
- Returns:
Minimum corner of the cell bounding box.
-
inline array3D_t get_max_bound() const
Get max bound of the cell
- Returns:
Maximum corner of the cell bounding box.
-
inline bool is_highlighted() const
Returns whether the cell is currently highlighted.
- Returns:
truewhen this cell is marked as highlighted.
-
inline size_t get_point_count() const
Get point count of the cell
- Returns:
Number of points stored in this cell.
-
cell3d_t() = default