22540: Fix the case if no edges are given

This commit is contained in:
skv 2014-11-10 12:37:04 +03:00
parent e50a7e7c84
commit a2992000d6

View File

@ -212,6 +212,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
} }
} }
if (aSeqEdgesIn->IsEmpty()) {
Standard_ConstructionError::Raise("No edges given");
}
// 2. Connect edges to wires of maximum length // 2. Connect edges to wires of maximum length
Handle(TopTools_HSequenceOfShape) aSeqWiresOut; Handle(TopTools_HSequenceOfShape) aSeqWiresOut;
ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(), ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(),