viewer.transformPoint(vertices[i], screens[i]);
render2(exportType != Graphics3D.EXPORT_NOT);
if (mesh.lattice == null || mesh.modelIndex < 0) {
render2(exportType != Graphics3D.EXPORT_NOT);
} else {
SymmetryInterface unitcell = viewer.getModelUnitCell(mesh.modelIndex);
if (unitcell != null) {
Point3f vTemp = new Point3f();
Point3i minXYZ = new Point3i();
Point3i maxXYZ = new Point3i((int) mesh.lattice.x,
(int) mesh.lattice.y, (int) mesh.lattice.z);
unitcell.setMinMaxLatticeParameters(minXYZ, maxXYZ);
for (int tx = minXYZ.x; tx < maxXYZ.x; tx++)
for (int ty = minXYZ.y; ty < maxXYZ.y; ty++)
for (int tz = minXYZ.z; tz < maxXYZ.z; tz++) {
latticeOffset.set(tx, ty, tz);
unitcell.toCartesian(latticeOffset, false);
for (int i = vertexCount; --i >= 0;) {
vTemp.set(vertices[i]);
vTemp.add(latticeOffset);
viewer.transformPoint(vTemp, screens[i]);
}