PointCloudHidePoints

Returns or modifies the hidden points of a point cloud object.

Note, hiding point cloud points is a runtime setting only - hidden points are not saved in the 3dm file.

Syntax

rhinoscriptsyntax.PointCloudHidePoints(object_id, hidden=[])

rhinoscript.geometry.PointCloudHidePoints(object_id, hidden=[])

Parameters

object_id

Required.  String or Guid.  The object's identifier.

hidden

Optional.  List.  A list(or tuple) of Boolean values indicating the hidden state (True = hidden, False = Visible). Note, for every point, there must be a corresponding Boolean value.  If the list is an empty list, the parameter is ignored and no modifications are made to the point cloud.

If the parameter is None, any existing hidden point information from the point cloud will be removed

Returns

List

If hidden is not specified or an empty list,  the current hidden state if successful.

List

If hidden is specified, the previous hidden state if successful.

None

If object_id does not have hidden points, if not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select point cloud", rs.filter.pointcloud)

if obj:

    hidden = [True] * rs.PointCloudCount(obj)

    for i in range(len(hidden)):

        hidden[i] = (i%2==0)

    rs.PointCloudHidePoints(obj, hidden)

Also See

PointCloudHasHiddenPoints

PointCloudHasPointColors

PointCloudPointColors