Exemplo n.º 1
0
 private void stepSimplicies3() {
   if (count3 < complex.getSimplicies()[3].getSize()) {
     Simplex simplex3 = (Simplex) complex.getSimplicies()[3].get(count3);
     addTetrahedron(simplex3, Colors.yellow);
     System.out.println(count3 + ": alpha3 = " + simplex3.getAlpha());
     count3++;
   }
 }
Exemplo n.º 2
0
 private void stepSimplicies23() {
   if ((count2 < complex.getSimplicies()[2].getSize())
       && (count3 < complex.getSimplicies()[3].getSize())) {
     Simplex simplex2 = (Simplex) complex.getSimplicies()[2].get(count2);
     Simplex simplex3 = (Simplex) complex.getSimplicies()[3].get(count3);
     if (simplex3.getAlpha() < simplex2.getAlpha()) {
       addTetrahedron(simplex3, Colors.yellow);
       System.out.println(count3 + ": alpha3 = " + simplex3.getAlpha());
       count3++;
     } else {
       System.out.println(count2 + ": alpha2 = " + simplex2.getAlpha());
       addTriangle(simplex2, Colors.yellow);
       count2++;
     }
   } else {
     if (count2 < complex.getSimplicies()[2].getSize()) {
       Simplex simplex2 = (Simplex) complex.getSimplicies()[2].get(count2);
       System.out.println(count2 + ": alpha2 = " + simplex2.getAlpha());
       addTriangle(simplex2, Colors.yellow);
       count2++;
     } else {
       if (count3 < complex.getSimplicies()[3].getSize()) {
         Simplex simplex3 = (Simplex) complex.getSimplicies()[3].get(count3);
         addTetrahedron(simplex3, Colors.yellow);
         System.out.println(count3 + ": alpha3 = " + simplex3.getAlpha());
         count3++;
       }
     }
   }
 }