assert(selectionList.size() == 19)
assert(aFactory.validate(Group_3.feature()))
-# groups related to the copied box should stay untouched
+# groups related to the copied box should contain only the elements connected with the original box
selectionList = Group_4.feature().selectionList("group_list")
assert(selectionList.size() == 1)
assert(aFactory.validate(Group_4.feature()))
selectionList = Group_5.feature().selectionList("group_list")
-assert(selectionList.size() == 6)
+assert(selectionList.size() == 3)
assert(aFactory.validate(Group_5.feature()))
selectionList = Group_6.feature().selectionList("group_list")
-assert(selectionList.size() == 12)
+assert(selectionList.size() == 3)
assert(aFactory.validate(Group_6.feature()))
assert(aFactory.validate(Group_2.feature()))
selectionList = Group_3.feature().selectionList("group_list")
-assert(selectionList.size() == 19)
+# one of edges should disappear, due to its belonging to the face of the filling
+assert(selectionList.size() == 18)
assert(aFactory.validate(Group_3.feature()))
-# groups related to the copied box should stay untouched
+# groups related to the copied box should be split correspondingly
selectionList = Group_4.feature().selectionList("group_list")
assert(selectionList.size() == 1)
assert(aFactory.validate(Group_4.feature()))
assert(aFactory.validate(Group_5.feature()))
selectionList = Group_6.feature().selectionList("group_list")
-assert(selectionList.size() == 12)
+assert(selectionList.size() == 5)
assert(aFactory.validate(Group_6.feature()))
assert(model.checkPythonDump())
std::shared_ptr<ModelAPI_ResultBody> aResultBody =
document()->createBody(data(), aResultIndex);
+ // tools should be added to the list to fulfill the correct history of modification
+ aListWithObject.insert(aListWithObject.end(), aTools.begin(), aTools.end());
+
ListOfShape aUsedTools = aTools;
aUsedTools.insert(aUsedTools.end(), aPlanes.begin(), aPlanes.end());
ListOfShape aBaseShapes;
aBaseShapes.push_back(aCompSolid);
+ // tools should be added to the list to fulfill the correct history of modification
+ aBaseShapes.insert(aBaseShapes.end(), aTools.begin(), aTools.end());
+
FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, aBaseShapes, aUsedTools,
aMakeShapeList, aResultShape);
setResult(aResultBody, aResultIndex);