Normand Briere
2019-07-27 1af7d3700724834e40ad8636bc9a56cdc3b19b15
BoundaryRep.java
....@@ -1997,7 +1997,9 @@
19971997 if (v.vertexlinks == null)
19981998 continue;
19991999
2000
- if (v.weights != null && v.weights[j] < 0.001 * v.totalweight) // == 0)
2000
+ // Warning: a bit faster but dangerous
2001
+ if (v.weights != null && v.weights[j] == 0)
2002
+ // < 0.001 * v.totalweight)
20012003 {
20022004 //testweight += v.weights[j-1];
20032005 continue;
....@@ -4001,7 +4003,7 @@
40014003 NormalGenerator ng;
40024004
40034005 if (crease)
4004
- ng = new NormalGenerator(Math.PI/6); // default is 44 degrees (or Math.PI/3); // /4);
4006
+ ng = new NormalGenerator(Math.PI/4); // default is 44 degrees (or Math.PI/3); // /4);
40054007 else
40064008 ng = new NormalGenerator(Math.PI); // (Math.PI / 3); // /4);
40074009
....@@ -4155,6 +4157,8 @@
41554157
41564158 void MergeNormals()
41574159 {
4160
+ assert(!trimmed);
4161
+
41584162 boolean smooth = Grafreed.smoothmode;
41594163 boolean link = Grafreed.linkUV;
41604164 Grafreed.smoothmode = true;