Normand Briere
2019-08-13 c67de8aca04d988179191ccb52461af00125920e
BoundaryRep.java
....@@ -1997,7 +1997,7 @@
19971997 if (v.vertexlinks == null)
19981998 continue;
19991999
2000
- // Warning: a bit faster but dangerous
2000
+ // Warning: faster but dangerous
20012001 if (v.weights != null && v.weights[j]
20022002 // == 0)
20032003 < 0.001 * v.totalweight)
....@@ -4022,8 +4022,6 @@
40224022 //System.out.println("NEW = " + positions.length);
40234023 uvmap = new float[ta.getVertexCount() * 2];
40244024
4025
- colors = new float[ta.getVertexCount()]; // * 3];
4026
-
40274025 ta.getCoordinates(0, positions);
40284026 ta.getNormals(0, normals);
40294027 // ta.getColors(0, colors);
....@@ -4031,6 +4029,14 @@
40314029
40324030 System.out.println("UV = " + uvmap[2] + ", " + uvmap[3] + ";");
40334031
4032
+ colors = null;
4033
+// colors = new float[ta.getVertexCount()]; // * 3];
4034
+//
4035
+// for (int i=colors.length; --i>=0;)
4036
+// {
4037
+// colors[i] = 1;
4038
+// }
4039
+
40344040 triangles = new int[ta.getVertexCount()];
40354041
40364042 for (int i = 0; i < triangles.length; i++)
....@@ -4068,17 +4074,18 @@
40684074 positions = new float[3 * ga.getVertexCount()];
40694075 normals = new float[3 * ga.getVertexCount()];
40704076 uvmap = new float[2 * ga.getVertexCount()];
4071
- colors = new float[1 * ga.getVertexCount()];
40724077
40734078 tsa.getCoordinates(0, positions);
40744079 tsa.getNormals(0, normals);
40754080 tsa.getTextureCoordinates(0, 0, uvmap);
40764081 // tsa.getColors(0, colors);
4077
-
4078
- for (int i=colors.length; --i>=0;)
4079
- {
4080
- colors[i] = 1;
4081
- }
4082
+
4083
+ colors = null;
4084
+// colors = new float[1 * ga.getVertexCount()];
4085
+// for (int i=colors.length; --i>=0;)
4086
+// {
4087
+// colors[i] = 1;
4088
+// }
40824089
40834090 int stripcount = tsa.getNumStrips();
40844091 triangles = new int[stripcount];
....@@ -4087,6 +4094,7 @@
40874094 stripified = true;
40884095 } catch (ClassCastException e)
40894096 {
4097
+ // ??? aug 2019
40904098 TriangleArray ta = (TriangleArray) ga;
40914099
40924100 positions = new float[3 * ga.getVertexCount()];