Plane.FitPlaneToPoints Method (IEnumerable(Point3d), Plane, Double)

PlaneFitPlaneToPoints Method (IEnumerablePoint3d, Plane, Double)

Fit a plane through a collection of points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static PlaneFitResult FitPlaneToPoints(
	IEnumerable<Point3d> points,
	out Plane plane,
	out double maximumDeviation
)
Public Shared Function FitPlaneToPoints ( 
	points As IEnumerable(Of Point3d),
	<OutAttribute> ByRef plane As Plane,
	<OutAttribute> ByRef maximumDeviation As Double
) As PlaneFitResult

Parameters

points
Type: System.Collections.GenericIEnumerablePoint3d
Points to fit to.
plane
Type: Rhino.GeometryPlane
Resulting plane.
maximumDeviation
Type: SystemDouble
The distance from the furthest point to the plane.

Return Value

Type: PlaneFitResult
A value indicating the result of the operation.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also