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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user