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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user