CADability dotNET
Finds a plane that best fits through the given points. Calculates also the maximum distance of the points from that plane. If MaxDistance is 0.0 or small, the points are coplanar.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static Plane FromPoints(
	GeoPoint[] Points,
	out double MaxDistance,
	out bool isLinear
)
Visual Basic
Public Shared Function FromPoints ( _
	Points As GeoPoint(), _
	<OutAttribute> ByRef MaxDistance As Double, _
	<OutAttribute> ByRef isLinear As Boolean _
) As Plane
Visual C++
public:
static Plane FromPoints(
	array<GeoPoint>^ Points, 
	[OutAttribute] double% MaxDistance, 
	[OutAttribute] bool% isLinear
)

Parameters

Points
Type: array<CADability..::..GeoPoint>[]()[][]
points to build the plane from
MaxDistance
Type: System..::..Double%
maximum distance of the points from the plane
isLinear
Type: System..::..Boolean%

Return Value

the plane

See Also