From 67df5bd709e0ba313f966e808366b323982e21ad Mon Sep 17 00:00:00 2001 From: Dimitris75 <30848292+Dimitris75@users.noreply.github.com> Date: Tue, 16 Dec 2025 17:37:04 +0200 Subject: [PATCH] Use dynamic LinearDeflection and AngularDeflection values Remove Temporary values from Mesh --- src/Mod/CAM/Path/Op/SurfaceSupport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Op/SurfaceSupport.py b/src/Mod/CAM/Path/Op/SurfaceSupport.py index 895d01b3ed..3abb9a4cb4 100644 --- a/src/Mod/CAM/Path/Op/SurfaceSupport.py +++ b/src/Mod/CAM/Path/Op/SurfaceSupport.py @@ -1262,7 +1262,11 @@ def _makeSTL(model, obj, ocl, model_type=None): shape = model # vertices, facet_indices = shape.tessellate(obj.LinearDeflection.Value) # tessellate workaround # Workaround for tessellate bug - mesh = MeshPart.meshFromShape(Shape=shape, LinearDeflection=0.001, AngularDeflection=0.25) + mesh = MeshPart.meshFromShape( + Shape=shape, + LinearDeflection=obj.LinearDeflection.Value, + AngularDeflection=obj.AngularDeflection.Value + ) vertices = [point.Vector for point in mesh.Points] facet_indices = [facet.PointIndices for facet in mesh.Facets] facets = ((vertices[f[0]], vertices[f[1]], vertices[f[2]]) for f in facet_indices)