You are here: Start » AVL.NET » AVL.CropSurfaceToRegion

AVL.CropSurfaceToRegion

Removes points that are not present in a given region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropSurfaceToRegion
(
	AvlNet.Surface inSurface,
	AvlNet.Region inRegion,
	bool inPreserveDimensions,
	out AvlNet.Surface outSurface
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inRegionAvlNet.RegionRegion from which the points are not removed.
inPreserveDimensionsboolFalseFlag indicating whether the surface dimensions should be preserved or not. Default value: False.
outSurfaceAvlNet.SurfaceOutput surface.

Errors

Error type Description
DomainError Input region exceeds surface dimensions in CropSurfaceToRegion.

See also