![]() |
NDEVR
API Documentation
|
A container for storing vertex data associated with geometry, including positions, normals, colors, timestamps, and a spatial index (RTree) for efficient spatial queries. More...
Public Member Functions | |
| ~GeometryVertices () | |
| Destructor. | |
| void | clearTree () |
| Clears and deletes the spatial index tree, sorted positions, and marks the tree as invalid. | |
| void | ensureTreeValid (LogPtr log) |
| Rebuilds the spatial index tree from the current positions if it is not already valid. | |
Public Attributes | |
| Bounds< 3, fltp04 > | bounds = Constant<Bounds<3, fltp04>>::Min |
| The axis-aligned bounding box enclosing all positions. | |
| Buffer< RGBColor > | colors |
| Per-vertex RGB colors. | |
| bool | is_tree_valid = false |
| Whether the spatial index tree is currently up-to-date with the positions. | |
| Buffer< Ray< 3, fltp04 > > | normals |
| Per-vertex normals stored as 3D rays. | |
| Vertex< 3, fltp08 > | offset = Constant<Vertex<3, fltp08>>::Invalid |
| A world-space offset applied to positions for double-precision accuracy. | |
| Buffer< Vertex< 3, fltp04 > > | positions |
| The 3D vertex positions. | |
| Buffer< fltp08 > | times |
| Per-vertex timestamps (e.g., acquisition time). | |
| RTree< 3, fltp04 > * | tree = nullptr |
| Spatial index tree for accelerated spatial queries. Owned by this struct. | |
| Buffer< Vertex< 3, fltp04 > > | tree_sorted_positions |
| Positions reordered to match the spatial index tree's internal ordering. | |
A container for storing vertex data associated with geometry, including positions, normals, colors, timestamps, and a spatial index (RTree) for efficient spatial queries.
Definition at line 20 of file GeometryVertices.h.
| GeometryVertices::~GeometryVertices | ( | ) |
Destructor.
Deletes the owned RTree if allocated.
| void GeometryVertices::clearTree | ( | ) |
Clears and deletes the spatial index tree, sorted positions, and marks the tree as invalid.
| void GeometryVertices::ensureTreeValid | ( | LogPtr | log | ) |
Rebuilds the spatial index tree from the current positions if it is not already valid.
Also populates tree_sorted_positions with the spatially sorted vertex order.
| [in] | log | A log pointer used for progress reporting during tree construction. |