M_Rhino_Geometry_Sphere_FitSphereToPoints - mcneel/rhinocommon-api-docs GitHub Wiki
Attempts to fit a sphere to a collection of points.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Sphere FitSphereToPoints(
IEnumerable<Point3d> points
)
VB
Public Shared Function FitSphereToPoints (
points As IEnumerable(Of Point3d)
) As Sphere
- points
- Type: System.Collections.Generic.IEnumerable(Point3d)
Points to fit. The collection must contain at least two points.
Type: Sphere
The Sphere that best approximates the points or Sphere.Unset on failure.
Supported in: 6.0.16224.21491, 5D58w