Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50a7e7
)
22540: Fix the case if no edges are given
author
skv
<skv@opencascade.com>
Mon, 10 Nov 2014 09:37:04 +0000
(12:37 +0300)
committer
skv
<skv@opencascade.com>
Mon, 10 Nov 2014 09:37:04 +0000
(12:37 +0300)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
index 914158002cfd653ff08c18fbece0c48a10eb446c..e67c0a47a4be4f71da4c9388b78f3744438210db 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
+++ b/
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
@@
-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
Handle(TopTools_HSequenceOfShape) aSeqWiresOut;
ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(),