Class PointCloud3
A collection of points in 3D space.
Inherited Members
Namespace: ZLab.Discrete.Geometry
Assembly: ZLab.Discrete.dll
Syntax
public class PointCloud3 : LicensedBase
Constructors
| Name | Description |
|---|---|
| PointCloud3() | Initializes a new instance of the PointCloud3 class. |
| PointCloud3(int) | Initializes a new instance of the PointCloud3 class with a specified buffer size. |
| PointCloud3(ReadOnlySpan<Vector3>) | Initializes a new instance of the PointCloud3 class. |
| PointCloud3(ReadOnlySpan<float>, ReadOnlySpan<float>, ReadOnlySpan<float>) | Initializes a new instance of the PointCloud3 class. |
Properties
| Name | Description |
|---|---|
| Count | Number of points in the point cloud. |
| Xs | Read-only spans for X coordinates |
| XsSpan | (unsafe) Spans for X coordinates that can be modified. |
| Ys | Read-only spans for Y coordinates |
| YsSpan | (unsafe) Spans for Y coordinates that can be modified. |
| Zs | Read-only spans for Z coordinates |
| ZsSpan | (unsafe) Spans for Z coordinates that can be modified. |
Methods
| Name | Description |
|---|---|
| GetArraysUnsafe() | (unsafe) Get the internal arrays for X, Y, and Z coordinates. |
| GetBounds() | Calculate the axis-aligned bounding box of the point cloud. |
| GetPoint(int) | Get the point at the specified index. |
| GetPointComponents(int) | Get the point components at the specified index. |
| SetBounds(BBox) | Manually set the bounding box of the point cloud. |
| SetPoint(in Vector3, int) | Set the point at the specified index. |
| SetPointComponents(float, float, float, int) | Set the point components at the specified index. |
| SetPointComponents((float x, float y, float z), int) | Set the point components at the specified index. |
| ToArray() | Convert the point cloud to an array of Vector3. |
| ToString() | String representation of the point cloud. |