You are here: Start » AVL.NET » AVL.CropSurfaceByNeighborsProximity Method

AVL.CropSurfaceByNeighborsProximity Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CropSurfaceByNeighborsProximity(
	AvlNet.Surface inSurface,
	int inNeighborRadius,
	float inMaxDistance,
	AvlNet.Metric3D inMetric,
	float inMinNeighborRatio,
	out AvlNet.Surface outSurface,
	out AvlNet.Region outRejected
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.Surface
inNeighborRadiusint<1, INF>1Radius of neighbors to search for real neighbors. Default value: 1.
inMaxDistancefloat<0.0f, INF>2.0fMaximal distance from another point to consider them real neighbors. Default value: 2.0f.
inMetricAvlNet.Metric3DZMetric used for measuring distance between points. Default value: Z.
inMinNeighborRatiofloat<0.0f, 1.0f>1.0fFraction of valid neighbors in a given radius that have to be real neighbors. Default value: 1.0f.
outSurfaceAvlNet.Surface
outRejectedAvlNet.RegionRegion of locations where points are too distant from their neighbors

Errors

Error type Description
DomainError Incorrect metric in CropSurfaceByNeighborsProximity.

See also