M_Rhino_Geometry_Sphere_FitSphereToPoints - mcneel/rhinocommon-api-docs GitHub Wiki

Sphere.FitSphereToPoints Method

Attempts to fit a sphere to a collection of points.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static Sphere FitSphereToPoints(
	IEnumerable<Point3d> points
)

VB

Public Shared Function FitSphereToPoints ( 
	points As IEnumerable(Of Point3d)
) As Sphere

Parameters

 

points
Type: System.Collections.Generic.IEnumerable(Point3d)
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.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Sphere Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️