From a6978ccda2ec993120a09d2fb9810924661acfbd Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 10 Jan 2023 06:01:07 +0800 Subject: [PATCH] Fix touched object after recomputation --- pFeatures.py | 55 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/pFeatures.py b/pFeatures.py index d879961..7a1fdc4 100644 --- a/pFeatures.py +++ b/pFeatures.py @@ -88,6 +88,27 @@ def onChanged(self, fp, prop): if prop=='ID' and fp.IDfp.OD/2: fp.thk=fp.OD/2 fp.ID=fp.OD-2*fp.thk @@ -128,6 +149,16 @@ def onChanged(self, fp, prop): if prop=='ID' and fp.IDfp.OD/2: fp.thk=fp.OD/2 @@ -604,25 +635,6 @@ def execute(self, fp): self.purge(fp) self.redraw(fp) return - from math import tan - for i in range(len(fp.Tubes)): - L=fp.Base.Shape.Edges[i].Length - R=fp.BendRadius - # adjust the curve - if i