for (int i = bondCount; --i >= 0;) {
Connection c = connections[i];
int atomCount = modelSet.getAtomCount();
if (c.atomIndex1 >= atomCount || c.atomIndex2 >= atomCount)
continue;
Bond b = modelSet.bondAtoms(modelSet.atoms[c.atomIndex1],
modelSet.atoms[c.atomIndex2], c.order, c.mad, null, c.energy, true);
b.setColix(c.colix);
b.setShapeVisibilityFlags(c.shapeVisibilityFlags);
}
for (int i = bondCount; --i >= 0;)