Constructor PointCloud3
| Edit this page View SourcePointCloud3()
Initializes a new instance of the PointCloud3 class.
Declaration
public PointCloud3()
PointCloud3(ReadOnlySpan<Vector3>)
Initializes a new instance of the PointCloud3 class.
Declaration
public PointCloud3(ReadOnlySpan<Vector3> points)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<Vector3> | points |
PointCloud3(ReadOnlySpan<float>, ReadOnlySpan<float>, ReadOnlySpan<float>)
Initializes a new instance of the PointCloud3 class.
Declaration
public PointCloud3(ReadOnlySpan<float> xs, ReadOnlySpan<float> ys, ReadOnlySpan<float> zs)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<float> | xs | X coordinates of the points. |
| ReadOnlySpan<float> | ys | Y coordinates of the points. |
| ReadOnlySpan<float> | zs | Z coordinates of the points. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the lengths of the coordinate arrays do not match. |
PointCloud3(int)
Initializes a new instance of the PointCloud3 class with a specified buffer size.
Declaration
public PointCloud3(int bufferSize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | bufferSize | The size of the buffer to allocate for the point cloud. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the buffer size is less than or equal to zero. |