Skip to content

Commit

Permalink
Path: Use Deflection param for PathSurface meshes
Browse files Browse the repository at this point in the history
The MaxLength option is quite slow and doesn't give as well-defined of
control over meshing accuracy as the deflection parameter.
  • Loading branch information
ianrrees committed Apr 2, 2017
1 parent c913481 commit a079b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Path/PathScripts/PathSurface.py
Expand Up @@ -304,7 +304,6 @@ def execute(self, obj):

if mesh.TypeId.startswith('Mesh'):
mesh = mesh.Mesh
bb = mesh.BoundBox
else:
# try/except is for Path Jobs created before GeometryTolerance
try:
Expand All @@ -313,8 +312,9 @@ def execute(self, obj):
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:
Expand Down

0 comments on commit a079b41

Please sign in to comment.