In the latest release of Rhino 6 WIP and going back the past month, I have been getting a Depreciation warning when calling AddPlanarSrf from my Pythonscript which says:
:1: DeprecationWarning: Brep.CreatePlanarBreps has been obsoleted. Use version that takes tolerance as input
If I edit AddPlanarSrf and add a tolerance line that I took from AddPipe in the function just above it in the surface.py code:
abs_tol = scriptcontext.doc.ModelAbsoluteTolerance
and include this in its call to CreatePlanarBreps:
breps = Rhino.Geometry.Brep.CreatePlanarBreps(curves, abs_tol)
then the warning goes away. CreatePlanarBreps is already setup to take a tolerance input as its second argument so this is what I did. And my Pythonscript still works properly.
Are you planning on making this change to Rhino 6 WIP or do I need to find a way to replace AddPlanarSrf altogether?