You are here: Start » AVL.NET » Function Reference » Surface » Surface Features » AVL.SurfaceFlatness

AVL.SurfaceFlatness

Computes the surface flatness i.e. how thick the surface is according to the input plane.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SurfaceFlatness
(
	AvlNet.Surface inSurface,
	AvlNet.Plane3D inPlane,
	out AvlNet.Point3D outMaximumPoint1,
	out AvlNet.Point3D outMaximumPoint2,
	out float outMaximumDistance1,
	out float outMaximumDistance2,
	out float outFlatness
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inPlaneAvlNet.Plane3DInput plane.
outMaximumPoint1AvlNet.Point3DSurface point with the largest distance on one side of the plane.
outMaximumPoint2AvlNet.Point3DSurface point with the largest distance on the other side of the plane.
outMaximumDistance1floatDistance of the first maximum point from the input plane.
outMaximumDistance2floatDistance of the second maximum point from the input plane.
outFlatnessfloatDifference between two extremal distances of surface points from the input plane.

Errors

List of possible exceptions:

Error type Description
DomainError No points available to compute surface flatness in SurfaceFlatness.
DomainError Region of interest exceeds an input surface in SurfaceFlatness.

Function Overrides

See also