> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PointCloud

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

### to\_dict

```python theme={null}
PointCloud.to_dict() -> dict
```

Serialize to dictionary for JSON transfer

<ResponseField name="Returns">
  <ResponseField name="returns" type="dict" />
</ResponseField>

### from\_dict

```python theme={null}
PointCloud.from_dict(data: dict) -> 'PointCloud'
```

Deserialize from dictionary

<ResponseField name="Arguments">
  <ParamField query="data (dict)" type="dict" required>
    *No description provided.*
  </ParamField>
</ResponseField>

<ResponseField name="Returns">
  <ResponseField name="returns" type="'PointCloud'" />
</ResponseField>
