for (int i = 0; i < lin.size(); i++) {
coord = lin.get(i).getCoords();
lout.addElement(new Vertex(coord[0], coord[1], coord[2])); //x,y,z
lout.addElement(new Vertex(coord[0], 0, 0)); //x,0,0
lout.addElement(new Vertex(coord[0], coord[1], 0)); //x,y,0
lout.addElement(new Vertex(coord[0], 0, coord[2])); //x,0,z
lout.addElement(new Vertex(0, coord[1], 0)); //0,y,0
lout.addElement(new Vertex(0, coord[1], coord[2])); //0,y,z
lout.addElement(new Vertex(0, 0, coord[2])); //0,0,z
}
return lout;
}