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)
public static Sphere FitSphereToPoints(
	IEnumerable<Point3d> points


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

Return Value

Type: Sphere
The Sphere that best approximates the points or Sphere.Unset on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also