PointCloud

class rhino3dm.PointCloud
PointCloud()

PointCloud constructor

PointCloud()

PointCloud constructor

Count

int: Gets the number of points in this point cloud.

HiddenPointCount

int: Gets the number of points that have their Hidden flag set.

ContainsColors

bool: Gets a value indicating whether or not the points in this point cloud have colors assigned to them.

ContainsNormals

bool: Gets a value indicating whether or not the points in this point cloud have normals assigned to them.

ContainsValues
ContainsHiddenFlags

bool: Gets a value indicating whether or not the points in this point cloud have hidden flags assigned to them.

__len__()

[todo] add documentation

__getitem__()

[todo] add documentation

ClearColors()

Destroys the color information in this point cloud.

Return type:

void

ClearNormals()

Destroys the normal vector information in this point cloud.

Return type:

void

ClearHiddenFlags()

Destroys the hidden flag information in this point cloud.

Return type:

void

AppendNew()

Appends a new PointCloudItem to the end of this point cloud.

Returns:

The newly appended item.

Return type:

PointCloudItem

InsertNew(index)

Inserts a new at a specific position of the point cloud.

Parameters:

index (int) – Index of new item.

Returns:

The newly inserted item.

Return type:

PointCloudItem

Merge(other)

Merges, or appends, a specified point cloud into this one.

Parameters:

other (PointCloud) – PointCloud to merge with this one.

Return type:

void

Add(point)

Append a new point to the end of the list.

Parameters:

point (rhino3dm.Point3d) – Point to append.

Return type:

void

Add(point, normal)

Append a new point to the end of the list.

Return type:

void

Add(point, color)

Append a new point to the end of the list.

Return type:

void

Add(point, normal, color)

Append a new point to the end of the list.

Return type:

void

Add(point, value)

Append a new point to the end of the list.

Return type:

void

Add(point, normal, normal, value)

Append a new point to the end of the list.

Return type:

void

AddRange(points)

Appends a collection of points to this point cloud.

Parameters:

points (list[rhino3dm.Point3d]) – Points to append.

Return type:

void

AddRange(points, normals)

Appends a collection of points to this point cloud.

Return type:

void

AddRange(points, colors)

Appends a collection of points to this point cloud.

Return type:

void

AddRange(points, normals, colors)

Appends a collection of points to this point cloud.

Return type:

void

AddRange(points, values)

Appends a collection of points to this point cloud.

Return type:

void

AddRange(points, normals, colors, values)

Appends a collection of points to this point cloud.

Return type:

void

Insert(index, point)

Inserts a new point into the point list.

Parameters:
  • index (int) – Insertion index.

  • point (rhino3dm.Point3d) – Point to append.

Return type:

void

Insert(index, point, normal)

Inserts a new point into the point list.

Return type:

void

Insert(index, point, color)

Inserts a new point into the point list.

Return type:

void

Insert(index, point, normal, color)

Inserts a new point into the point list.

Return type:

void

Insert(index, point, value)

Inserts a new point into the point list.

Return type:

void

Insert(index, point, normal, color, value)

Inserts a new point into the point list.

Return type:

void

InsertRange(index, points)

Append a collection of points to this point cloud.

Parameters:
  • index (int) – Index at which to insert the new collection.

  • points (list[rhino3dm.Point3d]) – Points to append.

Return type:

void

RemoveAt(index)

Remove the point at the given index.

Parameters:

index (int) – Index of point to remove.

Return type:

void

GetPoints()

Copy all the point coordinates in this point cloud to an array.

Returns:

An array containing all the points in this point cloud.

Return type:

rhino3dm.Point3d[]

PointAt(index)

Returns the location of the point at a specific index.

Parameters:

index (int) – The index.

Return type:

rhino3dm.Point3d

GetNormals()

Copy all the normal vectors in this point cloud to an array.

Returns:

An array containing all the normals in this point cloud.

Return type:

rhino3dm.Vector3d[]

GetColors()

Copy all the point colors in this point cloud to an array.

Returns:

An array containing all the colors in this point cloud.

Return type:

Color[]

GetValues()

[todo] add documentation

ClosestPoint(testPoint)

Returns index of the closest point in the point cloud to a given test point.

Parameters:

testPoint (rhino3dm.Point3d) –

.

Returns:

Index of point in the point cloud on success. -1 on failure.

Return type:

int