Fix Detail view orientation
This commit is contained in:
committed by
Yorik van Havre
parent
2b08754c17
commit
d48d014eb9
@@ -695,3 +695,22 @@ TopoDS_Shape TechDrawGeometry::scaleShape(const TopoDS_Shape &input,
|
||||
}
|
||||
return transShape;
|
||||
}
|
||||
|
||||
//!moves a shape
|
||||
TopoDS_Shape TechDrawGeometry::moveShape(const TopoDS_Shape &input,
|
||||
const Base::Vector3d& motion)
|
||||
{
|
||||
TopoDS_Shape transShape;
|
||||
try {
|
||||
gp_Trsf xlate;
|
||||
xlate.SetTranslation(gp_Vec(motion.x,motion.y,motion.z));
|
||||
|
||||
BRepBuilderAPI_Transform mkTrf(input, xlate);
|
||||
transShape = mkTrf.Shape();
|
||||
}
|
||||
catch (...) {
|
||||
Base::Console().Log("GeometryObject::moveShape - move failed.\n");
|
||||
return transShape;
|
||||
}
|
||||
return transShape;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user