Normand Briere
2019-07-24 f555e2cacc4470c5b2217a14d40d2b39c4a57ba2
BoundaryRep.java
....@@ -1997,7 +1997,8 @@
19971997 if (v.vertexlinks == null)
19981998 continue;
19991999
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)
20012002 {
20022003 //testweight += v.weights[j-1];
20032004 continue;
....@@ -4001,7 +4002,7 @@
40014002 NormalGenerator ng;
40024003
40034004 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);
40054006 else
40064007 ng = new NormalGenerator(Math.PI); // (Math.PI / 3); // /4);
40074008
....@@ -4155,6 +4156,8 @@
41554156
41564157 void MergeNormals()
41574158 {
4159
+ assert(!trimmed);
4160
+
41584161 boolean smooth = Grafreed.smoothmode;
41594162 boolean link = Grafreed.linkUV;
41604163 Grafreed.smoothmode = true;