Click or drag to resize

PointCloudGetRandomSubsample Method (UInt32, CancellationToken, IProgressDouble)

Returns a random subsample of a point cloud.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.5
Syntax
public PointCloud GetRandomSubsample(
	uint numberOfPoints,
	CancellationToken cancelToken,
	IProgress<double> progress
)

Parameters

numberOfPoints
Type: SystemUInt32
The number of points the new point cloud should contain.
cancelToken
Type: System.ThreadingCancellationToken
The cancellation token.
progress
Type: SystemIProgressDouble
The provider for progress updates.

Return Value

Type: PointCloud
A subsample of this point cloud if success, null otherwise.
See Also