Click or drag to resize

GH_PointUtilFitPlaneThroughPoints Method

Fit a least-squares plane through a collection of points.

Namespace:  Grasshopper.Kernel.Types
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static Plane FitPlaneThroughPoints(
	IEnumerable<GH_Point> pts
)

Parameters

pts
Type: System.Collections.GenericIEnumerableGH_Point
Points to fit, may contain nulls.

Return Value

Type: Plane
Best fit plane or null if insufficient points were supplied.
See Also