Click or drag to resize

SphereFitSphereToPoints Method

Attempts to fit a sphere to a collection of points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Sphere FitSphereToPoints(
	IEnumerable<Point3d> points
)

Parameters

points
Type: System.Collections.GenericIEnumerablePoint3d
Points to fit. The collection must contain at least three points.

Return Value

Type: Sphere
The Sphere that best approximates the points or Sphere.Unset on failure.
See Also