NDEVR
API Documentation
GeometryVertices

A container for storing vertex data associated with geometry, including positions, normals, colors, timestamps, and a spatial index (RTree) for efficient spatial queries. More...

Inheritance diagram for GeometryVertices:
[legend]
Collaboration diagram for GeometryVertices:
[legend]

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, fltp04bounds = Constant<Bounds<3, fltp04>>::Min
 The axis-aligned bounding box enclosing all positions.
Buffer< RGBColorcolors
 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, fltp08offset = 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< fltp08times
 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.

Detailed Description

A container for storing vertex data associated with geometry, including positions, normals, colors, timestamps, and a spatial index (RTree) for efficient spatial queries.


See also
Geometry, VertexColorIterator

Definition at line 20 of file GeometryVertices.h.

Constructor & Destructor Documentation

◆ ~GeometryVertices()

GeometryVertices::~GeometryVertices ( )

Destructor.


Deletes the owned RTree if allocated.

Member Function Documentation

◆ clearTree()

void GeometryVertices::clearTree ( )

Clears and deletes the spatial index tree, sorted positions, and marks the tree as invalid.


◆ ensureTreeValid()

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.

Parameters
[in]logA log pointer used for progress reporting during tree construction.

The documentation for this struct was generated from the following file: