SphereFitSphereToPoints Method |
Attempts to fit a sphere to a collection of points.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic 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.
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also