# Method for fitting a circe through a set of points

**URL:** <https://discourse.mcneel.com/t/method-for-fitting-a-circe-through-a-set-of-points/53330>\
**Category:** Rhino Developer\
**Tags:** rhinocommon\
**Created:** [January 18, 2018, 4:13pm UTC](https://discourse.mcneel.com/t/method-for-fitting-a-circe-through-a-set-of-points/53330 "2018-01-18T16:13:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mathias\_gmachl](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mathias_gmachl/32/485996_2.png) [@mathias\_gmachl](https://discourse.mcneel.com/u/mathias_gmachl)\
**Post date:** [January 18, 2018, 5:37pm UTC](https://discourse.mcneel.com/t/method-for-fitting-a-circe-through-a-set-of-points/53330/3 "2018-01-18T17:37:53Z")

</div>

Thanks, Michael.

So this could look something like this

```
  Sphere S = Sphere.FitSphereToPoints(Pts);
  Plane Pl = new Plane();
  Plane.FitPlaneToPoints(Pts, out Pl);
  Circle C = new Circle();
  Rhino.Geometry.Intersect.Intersection.PlaneSphere(Pl, S, out C);

```

Or is there a more elegant way?

---

_[View the full topic](https://discourse.mcneel.com/t/method-for-fitting-a-circe-through-a-set-of-points/53330)._
