cordMidPoints = viewer.allocTempPoints(midPointCount);
ProteinStructure proteinstructurePrev = null;
Point3f point;
for (int i = 0; i < monomerCount; ++i) {
point = cordMidPoints[i];
Monomer residue = monomers[i];
if (isNewStyle && renderArrowHeads) {
point.set(controlPoints[i]);
} else if (isHelix(i) || !isNewStyle && isSheet(i)) {
ProteinStructure proteinstructure = residue.getProteinStructure();
point.set(i - 1 != proteinstructure.getMonomerIndex() ?
proteinstructure.getAxisStartPoint() :
proteinstructure.getAxisEndPoint());
proteinstructurePrev = proteinstructure;
} else {