Fit points to circle C# and Grasshopper component

Hi,

I would like to ask why the C# version of rhinocommon for fitting points to circle is more precise than Grasshopper component version?

Or why they differ?

FitCircle.gh (7.2 KB)

Is the ‘TryFitCircleToPoints’ method new in R6? This is R5:

missing

  1. Error (CS0117): ‘Rhino.Geometry.Circle’ does not contain a definition for ‘TryFitCircleToPoints’ (line 72)

Rhino6

As in RH5 there was no such function, in GH1 is achieved by intersecting the sphere approximation with the plane approximation of the points. RH6 seems to have specific logic to circle approximation.

2 Likes

Thanks it seems that this intersection gives certain tolerance issue