Template Struct IndexedPoint

Struct Documentation

template<typename T>
struct IndexedPoint

A point that bundles an Eigen position with a 32-bit source index.

Use as the PointType of a VoxelHashMap when the original position of the surviving voxel representative must be recoverable after downsampling.

SizeAtCompileTime mirrors the inner Eigen type so that VoxelHashMap:: point_cols() and the num_attributes constructor check work uniformly for IndexedPoint without special-casing.

Template Parameters:

T – Underlying Eigen point type (e.g., Eigen::Vector3d).

Public Types

using point_type = T

Underlying Eigen point type (e.g., Eigen::Vector3d).

Public Members

T point

Spatial position.

std::uint32_t index = 0

Zero-based index of this point in the original source array.

Public Static Attributes

static const int SizeAtCompileTime = T::SizeAtCompileTime

Mirrors T::SizeAtCompileTime so VoxelHashMap works uniformly for IndexedPoint.