Normand Briere
2019-08-06 b3ae4e889872ca0b9ca76f1d17b2f0b961226729
BoundaryRep.java
....@@ -1997,7 +1997,10 @@
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]
2002
+ // == 0)
2003
+ < 0.001 * v.totalweight)
20012004 {
20022005 //testweight += v.weights[j-1];
20032006 continue;
....@@ -4001,7 +4004,7 @@
40014004 NormalGenerator ng;
40024005
40034006 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);
40054008 else
40064009 ng = new NormalGenerator(Math.PI); // (Math.PI / 3); // /4);
40074010
....@@ -4155,6 +4158,8 @@
41554158
41564159 void MergeNormals()
41574160 {
4161
+ assert(!trimmed);
4162
+
41584163 boolean smooth = Grafreed.smoothmode;
41594164 boolean link = Grafreed.linkUV;
41604165 Grafreed.smoothmode = true;