Skip to content

Commit

Permalink
Arch: small optimization in archframe code
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Nov 13, 2014
1 parent 1ce87b2 commit 18c0b3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Mod/Arch/ArchFrame.py
Expand Up @@ -136,14 +136,12 @@ def execute(self,obj):
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)
Expand Down

0 comments on commit 18c0b3b

Please sign in to comment.