.. | .. |
---|
565 | 565 | // } |
---|
566 | 566 | |
---|
567 | 567 | //new Exception().printStackTrace(); |
---|
568 | | - GL gl = display.GetGL(); // getGL(); |
---|
| 568 | + GL gl = display.GetGL0(); // getGL(); |
---|
569 | 569 | |
---|
570 | 570 | //gl.glDisable(GL.GL_LIGHTING); |
---|
571 | 571 | |
---|
.. | .. |
---|
1208 | 1208 | } |
---|
1209 | 1209 | |
---|
1210 | 1210 | if (edges.size()%2 != 0) |
---|
| 1211 | + { |
---|
| 1212 | + new Exception().printStackTrace(); |
---|
1211 | 1213 | System.exit(0); |
---|
| 1214 | + } |
---|
1212 | 1215 | } |
---|
1213 | 1216 | |
---|
1214 | 1217 | // if (clearsprings) |
---|
.. | .. |
---|
1516 | 1519 | second = springs.get((i+1)%springs.size()); |
---|
1517 | 1520 | |
---|
1518 | 1521 | if (first == second) |
---|
| 1522 | + { |
---|
| 1523 | + new Exception().printStackTrace(); |
---|
1519 | 1524 | System.exit(0); |
---|
| 1525 | + } |
---|
1520 | 1526 | |
---|
1521 | 1527 | temp.set(first.GetOther(this).position); |
---|
1522 | 1528 | temp.sub(position); |
---|
.. | .. |
---|
1646 | 1652 | Spring second = springs.get((i+1)%springs.size()); |
---|
1647 | 1653 | |
---|
1648 | 1654 | if (first == second) |
---|
| 1655 | + { |
---|
| 1656 | + new Exception().printStackTrace(); |
---|
1649 | 1657 | System.exit(0); |
---|
| 1658 | + } |
---|
1650 | 1659 | |
---|
1651 | 1660 | temp.set(first.GetOther(this).position); |
---|
1652 | 1661 | temp.sub(position); |
---|
.. | .. |
---|
1715 | 1724 | |
---|
1716 | 1725 | // Phys.matrix.Transform(normal); |
---|
1717 | 1726 | |
---|
1718 | | - if (position instanceof Vertex) |
---|
| 1727 | + if (position instanceof Vertex && ((Vertex)position).norm != null) |
---|
1719 | 1728 | ((Vertex)position).norm.set(normal.x,normal.y,normal.z); |
---|
1720 | 1729 | } |
---|
1721 | 1730 | |
---|
.. | .. |
---|
3289 | 3298 | |
---|
3290 | 3299 | if (N2.mass == Float.MAX_VALUE) |
---|
3291 | 3300 | { |
---|
| 3301 | + new Exception().printStackTrace(); |
---|
3292 | 3302 | System.exit(0); |
---|
3293 | 3303 | magnitude *= solidity; // * K; |
---|
3294 | 3304 | |
---|