Fix Section Line Wrong Position

- Section cut line Y coord needs to be mirrored to
  be position correctly on Page.
This commit is contained in:
WandererFan
2018-01-09 19:01:10 -05:00
committed by Yorik van Havre
parent 70099d5704
commit 861dc42d33
2 changed files with 8 additions and 2 deletions

View File

@@ -555,7 +555,7 @@ TopoDS_Shape TechDrawGeometry::mirrorShape(const TopoDS_Shape &input,
gp_Trsf tempTransform;
tempTransform.SetScale(inputCenter, scale);
gp_Trsf mirrorTransform;
mirrorTransform.SetMirror( gp_Ax2(inputCenter, gp_Dir(0, 1, 0)) );
mirrorTransform.SetMirror( gp_Ax2(inputCenter, gp_Dir(0, -1, 0)) );
tempTransform.Multiply(mirrorTransform);
// Apply that transform to the shape. This should preserve the centre.