Пример #1
0
 public Vertex(Vertex original)
 {
     position = original.getPosition();
     index    = original.getIndex();
     inHole   = original.getInHole();
     UV       = original.getUV();
 }
Пример #2
0
 /** Triangulates the quad iff is not part of a hole **/
 private void triangulateQuad(Vertex bl, Vertex br, Vertex tl, Vertex tr)
 {
     /**		The quad vertices seen from outside the cave:
      *      tl___tr
      *      |	 |
      *      bl___br
      **/
     if (!(bl.getInHole() && tr.getInHole() && tl.getInHole() && br.getInHole()))               //Avoid triangulating holes
     //Left-hand!
     {
         addTriangle(bl.getIndex(), tr.getIndex(), tl.getIndex());
         addTriangle(bl.getIndex(), br.getIndex(), tr.getIndex());
     }
 }