From 18c0b3ba69ef8cb1192135b9580cdf5d4572cfa0 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 13 Nov 2014 19:30:02 -0200 Subject: [PATCH] Arch: small optimization in archframe code --- src/Mod/Arch/ArchFrame.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchFrame.py b/src/Mod/Arch/ArchFrame.py index 177d8ef4f..3c7a54724 100644 --- a/src/Mod/Arch/ArchFrame.py +++ b/src/Mod/Arch/ArchFrame.py @@ -136,14 +136,12 @@ class _Frame(ArchComponent.Component): if hasattr(obj,"BasePoint"): if obj.BasePoint == 0 : basepoint = profile.CenterOfMass - profile.translate(bpoint.sub(basepoint)) else : # TODO add mid point of edges and make an ordered list point, mid point , ... basepoint = profile.Vertexes[obj.BasePoint - 1].Point - profile.translate(bpoint.sub(basepoint)) else : basepoint = profile.CenterOfMass - profile.translate(bpoint.sub(basepoint)) + profile.translate(bpoint.sub(basepoint)) if obj.Align: axis = profile.Placement.Rotation.multVec(FreeCAD.Vector(0,0,1)) angle = bvec.getAngle(axis)