.. | .. |
---|
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] |
---|
| 2002 | + // == 0) |
---|
| 2003 | + < 0.001 * v.totalweight) |
---|
2001 | 2004 | { |
---|
2002 | 2005 | //testweight += v.weights[j-1]; |
---|
2003 | 2006 | continue; |
---|
.. | .. |
---|
4001 | 4004 | NormalGenerator ng; |
---|
4002 | 4005 | |
---|
4003 | 4006 | if (crease) |
---|
4004 | | - ng = new NormalGenerator(Math.PI/6); // default is 44 degrees (or Math.PI/3); // /4); |
---|
| 4007 | + ng = new NormalGenerator(Math.PI/4); // default is 44 degrees (or Math.PI/3); // /4); |
---|
4005 | 4008 | else |
---|
4006 | 4009 | ng = new NormalGenerator(Math.PI); // (Math.PI / 3); // /4); |
---|
4007 | 4010 | |
---|
.. | .. |
---|
4155 | 4158 | |
---|
4156 | 4159 | void MergeNormals() |
---|
4157 | 4160 | { |
---|
| 4161 | + assert(!trimmed); |
---|
| 4162 | + |
---|
4158 | 4163 | boolean smooth = Grafreed.smoothmode; |
---|
4159 | 4164 | boolean link = Grafreed.linkUV; |
---|
4160 | 4165 | Grafreed.smoothmode = true; |
---|