private void writeBeams(PrintStream out, AmibeReader.SubMesh subMesh, int count) throws IOException { IntFileReader beams = subMesh.getBeams(); long nb = beams.size() / 2; for (int i = 0; i < nb; i++) { out.println(FORMAT_I10.format(count) + " 21 2 1 5 2"); out.println(" 0 1 1"); out.println(FORMAT_I10.format(beams.get() + 1) + FORMAT_I10.format(beams.get() + 1)); count++; } }