X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Wire.cpp;fp=src%2FGeomAPI%2FGeomAPI_Wire.cpp;h=2ca5925ab0540ba9205058814de7739166875dbf;hb=92691167bcffe4c144360a3a8ce57e05dda9f2e9;hp=addd4ccb6c166c390d2997d77dec8ca32c6a1288;hpb=8c7c4884ea96bdc8de20b5887f26eb07da7a08c1;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Wire.cpp b/src/GeomAPI/GeomAPI_Wire.cpp index addd4ccb6..2ca5925ab 100644 --- a/src/GeomAPI/GeomAPI_Wire.cpp +++ b/src/GeomAPI/GeomAPI_Wire.cpp @@ -93,6 +93,8 @@ bool GeomAPI_Wire::isRectangle(std::list& thePoints) const const TopoDS_Edge& anEdge = anExp.Current(); double aT1, aT2; Handle(Geom_Curve) aC3D = BRep_Tool::Curve(anEdge, aT1, aT2); + if (aC3D.IsNull()) + continue; while (aC3D->IsKind(aTrimmedCurveType)) aC3D = Handle(Geom_TrimmedCurve)::DownCast(aC3D)->BasisCurve(); if (!aC3D.IsNull() && aC3D->IsKind(aLineType)) {