Part: in TopoShape::transformGeometry convert OCC exception into Base exception

The conversion is needed because TopoShape::transformGeometry reimplements ComplexGeoData::transformGeometry and is called in the core system
This commit is contained in:
wmayer
2022-04-29 15:37:44 +02:00
parent b22424ee9b
commit d2253c7be4

View File

@@ -3173,10 +3173,15 @@ TopoDS_Shape TopoShape::makeThickSolid(const TopTools_ListOfShape& remFace,
void TopoShape::transformGeometry(const Base::Matrix4D &rclMat)
{
if (this->_Shape.IsNull())
Standard_Failure::Raise("Cannot transform null shape");
try {
if (this->_Shape.IsNull())
Standard_Failure::Raise("Cannot transform null shape");
*this = makeGTransform(rclMat);
*this = makeGTransform(rclMat);
}
catch (const Standard_Failure& e) {
throw Base::CADKernelError(e.GetMessageString());
}
}
TopoDS_Shape TopoShape::transformGShape(const Base::Matrix4D& rclTrf, bool copy) const