Skip to main content
A class to represent a point cloud.

Fields

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.
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.

Constructor

Signature

Methods

from_dict()

Signature
Deserialize from dictionary

to_dict()

Signature
Serialize to dictionary for JSON transfer

Example