PointCloud
Inherits from:object
A class to represent a point cloud.
Attributes:
points (np.ndarray): Array of points with shape (N, D) where N is the number of points
and D is the dimensionality of each point (e.g., D=3 for x,y,z).
Each row is a point, and each column is a dimension/feature.
fields (List[str]): List of field names for the point cloud data.
The order of field names must correspond to the columns in the points array.
If not provided, defaults to [‘x’, ‘y’] for 2D points (N,2) or
[‘x’, ‘y’, ‘z’] for 3D points (N,3). For other dimensions,
fields must be explicitly provided.