1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026555: Modeling Algorithms - Exception-safe status reporting in BRepOffset_MakeOffset

Set safe exit status for:
Standard_NullObject exception,
Standard_NullObject: BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt,
BRep_Tool: no parameter on edge,
BRepOffset_MakeOffset::TrimEdge no projection
This commit is contained in:
akaftasev
2020-05-12 12:21:59 +03:00
committed by bugmaster
parent 453103d191
commit 3e85dfc5e5
8 changed files with 205 additions and 110 deletions

View File

@@ -380,6 +380,21 @@ static void reportOffsetState(Draw_Interpretor& theCommands,
theCommands << "ERROR. Incorrect set of faces to remove, the remaining shell is not connected.";
break;
}
case BRepOffset_CannotTrimEdges:
{
theCommands << "ERROR. Can not trim edges.";
break;
}
case BRepOffset_CannotFuseVertices:
{
theCommands << "ERROR. Can not fuse vertices.";
break;
}
case BRepOffset_CannotExtentEdge:
{
theCommands << "ERROR. Can not extent edge.";
break;
}
default:
{
theCommands << "ERROR. offsetperform operation not done.";