There seems to be a bug with the Curve.IsPlanar(tolerance).
The sample Brep is planar with a tolerance of 1 mm (knowing the deviation is 0.89) by the test in Surface.IsPlanar(tolerance). However, the results are different in Curve.IsPlanar(tolerance) and Brep.CreatePlanarBreps(curve, tolerance). I have to increase the tolerance until 4 to make it pass the IsPlanar for the curve.
Is this a bug? if not, what is the reason/logic why the different results from IsPlanar check for the curve and surface?
Hi @dale, right it is not planar with the 0 tolerance, but it is planar with the tolerance of 1 or above.
Do you mean it is still not planar even with a tolerance of 2?
I am using the RhinoCommon to run these checks, if you see my GH file above, the Surface.IsPlanar returns true when I increase the tolerance from 0 to 1.