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

0026687: SIGSEGV in BRepBuilderAPI_MakeFace

1. Check face location has been added.
2. Message, if mkplane command fails, has been added.
3. Test case for this issue has been created.

Changes in accordance with the remark.

Small correction of test case for issue CR26687
This commit is contained in:
nbv
2015-09-17 13:52:17 +03:00
committed by bugmaster
parent 363bc51b20
commit 1f0adf314d
3 changed files with 47 additions and 4 deletions

View File

@@ -118,6 +118,7 @@ static Standard_Boolean Is2DClosed(const TopoDS_Shape& theShape,
{
try
{
OCC_CATCH_SIGNALS
// get a wire theShape
TopExp_Explorer aWireExp( theShape, TopAbs_WIRE );
if ( !aWireExp.More() ) {
@@ -225,7 +226,7 @@ void BRepLib_FindSurface::Init(const TopoDS_Shape& S,
if (SS.IsNull()) {
break;
}
if (SS == mySurface) {
if ((SS == mySurface) && (L.IsEqual(myLocation))) {
break;
}
SS.Nullify();