ResultBodyPtr aResultBody = document()->createBody(data());
std::set<GeomShapePtr>::const_iterator aContextIt = aContexts.begin();
for (; aContextIt != aContexts.end(); aContextIt++) {
- aResultBody->storeModified(*aContextIt, aWire, aContextIt == aContexts.begin() ? 0 : -2);
+ aResultBody->storeModified(*aContextIt, aWire, aContextIt == aContexts.begin());
}
aPointsIt = aPoints.cbegin();
for (; anExp.more() && aPointsIt != aPoints.cend(); anExp.next(), ++aPointsIt) {
GeomShapePtr aPoint = *aPointsIt;
GeomShapePtr anEdge = anExp.current();
- aResultBody->generated(aPoint, anEdge, "Edge", 1);
+ aResultBody->generated(aPoint, anEdge);
}
if (!isClosed) {