CropSurfaceByNeighborsProximity


Removes from the surface points that are too distant from their neighbor points.

Syntax

C++
C#
Python
 
def CropSurfaceByNeighborsProximity(
	inSurface: Surface,
	inNeighborRadius: int,
	inMaxDistance: float,
	inMetric: Metric3D,
	inMinNeighborRatio: float,
	outSurface: Surface,
	/,
	*,
	inRoi: Region | None = None,
	inPreserveDimensions: bool = False,
	outRejected: Region | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inSurface Surface
Input value inRoi Region | None None Region of interest
Input value inNeighborRadius int 1 - Radius of neighbors to search for real neighbors
Input value inMaxDistance float 0.0 - Maximal distance from another point to consider them real neighbors
Input value inMetric Metric3D Metric used for measuring distance between points
Input value inMinNeighborRatio float 0.0 - 1.0 Fraction of valid neighbors in a given radius that have to be real neighbors
Input value inPreserveDimensions bool False Flag indicating whether the surface dimensions should be preserved or not
Output value outSurface Surface
Output value outRejected Region | None None Region of locations where points are too distant from their neighbors