.. | .. |
---|
1997 | 1997 | if (v.vertexlinks == null) |
---|
1998 | 1998 | continue; |
---|
1999 | 1999 | |
---|
2000 | | - if (v.weights != null && v.weights[j] < 0.001 * v.totalweight) // == 0) |
---|
| 2000 | + // Warning: faster but dangerous |
---|
| 2001 | + if (v.weights != null && v.weights[j] == 0) // < 0.001 * v.totalweight) |
---|
2001 | 2002 | { |
---|
2002 | 2003 | //testweight += v.weights[j-1]; |
---|
2003 | 2004 | continue; |
---|
.. | .. |
---|
4001 | 4002 | NormalGenerator ng; |
---|
4002 | 4003 | |
---|
4003 | 4004 | if (crease) |
---|
4004 | | - ng = new NormalGenerator(Math.PI/6); // default is 44 degrees (or Math.PI/3); // /4); |
---|
| 4005 | + ng = new NormalGenerator(Math.PI/4); // default is 44 degrees (or Math.PI/3); // /4); |
---|
4005 | 4006 | else |
---|
4006 | 4007 | ng = new NormalGenerator(Math.PI); // (Math.PI / 3); // /4); |
---|
4007 | 4008 | |
---|