RhinoCommon API
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 )
Public Shared Function FitSphereToPoints ( points As IEnumerable(Of Point3d) ) As Sphere
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint3d
Points to fit. The collection must contain at least two points.
Return Value
Type: SphereThe Sphere that best approximates the points or Sphere.Unset on failure.