Skip to content

Commit

Permalink
+ fix scale in TopoShapePy
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 5, 2014
1 parent 246c895 commit 480bf1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Mod/Part/App/TopoShapePyImp.cpp
Expand Up @@ -27,6 +27,7 @@
# include <BRepMesh.hxx>
# include <BRepBuilderAPI_Copy.hxx>
# include <BRepBuilderAPI_Sewing.hxx>
# include <BRepBuilderAPI_Transform.hxx>
# include <BRepClass3d_SolidClassifier.hxx>
# include <BRepFilletAPI_MakeFillet.hxx>
# include <BRepFilletAPI_MakeChamfer.hxx>
Expand Down Expand Up @@ -907,8 +908,10 @@ PyObject* TopoShapePy::scale(PyObject *args)
try {
gp_Trsf scl;
scl.SetScale(pos, factor);
TopLoc_Location loc(scl);
getTopoShapePtr()->_Shape.Move(loc);
BRepBuilderAPI_Transform BRepScale(scl);
bool bCopy = true;
BRepScale.Perform(getTopoShapePtr()->_Shape,bCopy);
getTopoShapePtr()->_Shape = BRepScale.Shape();
Py_Return;
}
catch (Standard_Failure) {
Expand Down

0 comments on commit 480bf1b

Please sign in to comment.