in mult-common feature check if input shapes are valid

This commit is contained in:
wmayer
2017-10-11 13:51:38 +02:00
parent 5f86bfcd65
commit 070f1ebd01

View File

@@ -108,7 +108,13 @@ App::DocumentObjectExecReturn *MultiCommon::execute(void)
try {
std::vector<ShapeHistory> history;
TopoDS_Shape resShape = s.front();
if (resShape.IsNull())
throw Base::RuntimeError("Input shape is null");
for (std::vector<TopoDS_Shape>::iterator it = s.begin()+1; it != s.end(); ++it) {
if (it->IsNull())
throw Base::RuntimeError("Input shape is null");
// Let's call algorithm computing a fuse operation:
BRepAlgoAPI_Common mkCommon(resShape, *it);
// Let's check if the fusion has been successful