You are here: Start » AVL.NET » Function Reference » Surface » Surface Spatial Transforms » AVL.CropSurfaceByPlaneProximity

AVL.CropSurfaceByPlaneProximity

Removes from the surface points that are too distant from a given plane.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropSurfaceByPlaneProximity
(
	AvlNet.Surface inSurface,
	NullableRef<AvlNet.Region> inRoi,
	AvlNet.Plane3D inPlane,
	float? inMinDistance,
	float? inMaxDistance,
	bool inPreserveDimensions,
	AvlNet.Surface outSurface,
	AvlNet.Region outRejected
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
inPlaneAvlNet.Plane3DPlane to which distance is measured.
inMinDistancefloat?Minimal distance from a given plane. Default value: atl::NIL.
inMaxDistancefloat?1.0fMaximal distance from a given plane. Default value: 1.0f.
inPreserveDimensionsboolFalseFlag indicating whether the surface dimensions should be preserved or not. Default value: False.
outSurfaceAvlNet.SurfaceOutput surface.
outRejectedAvlNet.RegionRegion of locations where points are too distant from the input plane.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite plane on input in CropSurfaceByPlaneProximity.
DomainError Region of interest exceeds an input surface in CropSurfaceByPlaneProximity.

Function Overrides

See also