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) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Sphere FitSphereToPoints(
	IEnumerable<Point3d> points
)

Parameters

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.
See Also