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.
This commit is contained in:
Ian Rees
2017-04-02 18:52:43 +12:00
parent c913481ec1
commit a079b415ae

View File

@@ -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: