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

AVL.FitPlaneToSurface Method

Approximates points of the input surface with a plane using the Least Squares method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitPlaneToSurface(
	AvlNet.Surface inSurface,
	AvlNet.Region inRoi,
	out AvlNet.Plane3D outPlane,
	out float[] outDistances,
	out float outSignedDistanceSum,
	out float outDistanceSum,
	out float[] outSquaredDistances,
	out float outSquaredDistanceSum
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inRoiAvlNet.RegionRegion of interest. Default value: atl::NIL, or null.
outPlaneAvlNet.Plane3DFitted plane.
outDistancesfloatDistances of the input surface points to a resulting plane
outSignedDistanceSumfloatSum of signed distances of the input surface points to a resulting plane
outDistanceSumfloatSum of distances of the input surface points to a resulting plane
outSquaredDistancesfloatSquared distances of the input surface points to a resulting plane
outSquaredDistanceSumfloatSum of squared distances of the input surface points to a resulting plane

See also