You are here: Start » AVL.NET » Function Reference » Surface » Surface Fitting » AVL.FitPlaneToSurface

AVL.FitPlaneToSurface

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitPlaneToSurface
(
	AvlNet.Surface inSurface,
	NullableRef<AvlNet.Region> inRoi,
	out AvlNet.Plane3D outPlane,
	IList<float> outDistances,
	out float outSignedDistanceSum,
	out float outDistanceSum,
	IList<float> outSquaredDistances,
	out float outSquaredDistanceSum
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
outPlaneAvlNet.Plane3DFitted plane.
outDistancesSystem.Collections.Generic.IList<float>Distances 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.
outSquaredDistancesSystem.Collections.Generic.IList<float>Squared distances of the input surface points to a resulting plane.
outSquaredDistanceSumfloatSum of squared distances of the input surface points to a resulting plane.

Errors

List of possible exceptions:

Error type Description
DomainError No points to fit the plane to in FitPlaneToSurface.
DomainError Region of interest exceeds an input surface in FitPlaneToSurface.

Function Overrides

See also