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
)
Public Shared Function FitPlaneThroughPoints (
pts As IEnumerable(Of GH_Point)
) As Plane
Parameters
- pts
- Type: System.Collections.GenericIEnumerableGH_Point
Points to fit, may contain nulls.
Return Value
Type:
PlaneBest fit plane or null if insufficient points were supplied.
See Also