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
)
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 three points.
Return Value
Type:
SphereThe Sphere that best approximates the points or Sphere.Unset on failure.
See Also