From a079b415aee20b834d0061b5e8a80bb5ddf364ba Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Sun, 2 Apr 2017 18:52:43 +1200 Subject: [PATCH] Path: Use Deflection param for PathSurface meshes The MaxLength option is quite slow and doesn't give as well-defined of control over meshing accuracy as the deflection parameter. --- src/Mod/Path/PathScripts/PathSurface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSurface.py b/src/Mod/Path/PathScripts/PathSurface.py index 128f33f203..9619c7b657 100644 --- a/src/Mod/Path/PathScripts/PathSurface.py +++ b/src/Mod/Path/PathScripts/PathSurface.py @@ -304,7 +304,6 @@ class ObjectSurface: if mesh.TypeId.startswith('Mesh'): mesh = mesh.Mesh - bb = mesh.BoundBox else: # try/except is for Path Jobs created before GeometryTolerance try: @@ -313,8 +312,9 @@ class ObjectSurface: from PathScripts.PathPreferences import PathPreferences deflection = PathPreferences.defaultGeometryTolerance() - mesh = MeshPart.meshFromShape(mesh.Shape, MaxLength=2) - bb = mesh.Shape.BoundBox + mesh = MeshPart.meshFromShape(mesh.Shape, Deflection = deflection) + + bb = mesh.BoundBox s = ocl.STLSurf() for f in mesh.Facets: