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 | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | |||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inNeighborRadius | int | 1 - ![]() |
Radius of neighbors to search for real neighbors | |
![]() |
inMaxDistance | float | 0.0 - ![]() |
Maximal distance from another point to consider them real neighbors | |
![]() |
inMetric | Metric3D | Metric used for measuring distance between points | ||
![]() |
inMinNeighborRatio | float | 0.0 - 1.0 | Fraction of valid neighbors in a given radius that have to be real neighbors | |
![]() |
inPreserveDimensions | bool | False | Flag indicating whether the surface dimensions should be preserved or not | |
![]() |
outSurface | Surface | |||
![]() |
outRejected | Region | None | None | Region of locations where points are too distant from their neighbors |



