if (body.isEmpty()) {
setEntry(primitiveFactory.createCrossPoint(this));
setExit(getEntry());
} else {
boolean isFirst = true;
CrossPoint currentEnd = null;
for (ISegmentFigure child : body) {
if (isFirst) {
setEntry(child.getEntry());
isFirst = false;
} else {