Normand Briere
2019-05-13 f924d3e00db476c06f55f3d5aaef307e17575340
BoundaryRep.java
....@@ -172,16 +172,16 @@
172172 bufV = other.bufV;
173173 bufF = other.bufF;
174174
175
- positions = (float[]) GrafreeD.clone(other.positions);
176
- normals = (float[]) GrafreeD.clone(other.normals);
177
- colors = (float[]) GrafreeD.clone(other.colors);
178
- uvmap = (float[]) GrafreeD.clone(other.uvmap);
179
- triangles = (int[]) GrafreeD.clone(other.triangles);
175
+ positions = (float[]) Grafreed.clone(other.positions);
176
+ normals = (float[]) Grafreed.clone(other.normals);
177
+ colors = (float[]) Grafreed.clone(other.colors);
178
+ uvmap = (float[]) Grafreed.clone(other.uvmap);
179
+ triangles = (int[]) Grafreed.clone(other.triangles);
180180
181
- indices = (int[]) GrafreeD.clone(other.indices);
181
+ indices = (int[]) Grafreed.clone(other.indices);
182182
183
- vertices = (Vector<Vertex>) GrafreeD.clone(other.vertices);
184
- faces = (Vector<Face>) GrafreeD.clone(other.faces);
183
+ vertices = (Vector<Vertex>) Grafreed.clone(other.vertices);
184
+ faces = (Vector<Face>) Grafreed.clone(other.faces);
185185 }
186186 else
187187 {
....@@ -500,7 +500,7 @@
500500 static Vertex vertextemp = new Vertex(true);
501501 static Vertex vertextemp2 = new Vertex(true);
502502
503
- static double SEUIL = 0.1f; // 0.1 for rag doll; 0.07;
503
+ static double SEUIL = 0.05f; // 0.1 for rag doll; 0.07;
504504
505505 // Compute weight of point w/r to this
506506 float ComputeWeight(Vertex v, double[][] toRoot, int k)
....@@ -1518,7 +1518,7 @@
15181518 InitFaceIndices();
15191519 }
15201520
1521
- BoundaryRep rep = (BoundaryRep) GrafreeD.clone(this);
1521
+ BoundaryRep rep = (BoundaryRep) Grafreed.clone(this);
15221522 //float[] v = new float[100];
15231523
15241524 for (int loops=1; --loops>=0;)
....@@ -1548,7 +1548,7 @@
15481548 InitFaceIndices();
15491549 }
15501550
1551
- BoundaryRep rep = (BoundaryRep) GrafreeD.clone(this);
1551
+ BoundaryRep rep = (BoundaryRep) Grafreed.clone(this);
15521552 //float[] v = new float[100];
15531553
15541554 for (int loops=10; --loops>=0;)
....@@ -2670,7 +2670,7 @@
26702670
26712671 if (Globals.framecount - lastsoundtime > 30) // 0.25 secs
26722672 {
2673
- GrafreeD.wav.play((Math.random()+0.5)/Math.max(tmp.length2(),0.2)); //, 1);
2673
+ Grafreed.wav.play((Math.random()+0.5)/Math.max(tmp.length2(),0.2)); //, 1);
26742674
26752675 lastsoundtime = Globals.framecount;
26762676 }
....@@ -3403,7 +3403,7 @@
34033403 k /= x*x + y*y;
34043404 }
34053405 else
3406
- GrafreeD.Assert(z == 1);
3406
+ Grafreed.Assert(z == 1);
34073407
34083408 if (k < 0)
34093409 k = 0;
....@@ -3902,6 +3902,11 @@
39023902 tsa.getNormals(0, normals);
39033903 tsa.getTextureCoordinates(0, 0, uvmap);
39043904 // tsa.getColors(0, colors);
3905
+
3906
+ for (int i=colors.length; --i>=0;)
3907
+ {
3908
+ colors[i] = 1;
3909
+ }
39053910
39063911 int stripcount = tsa.getNumStrips();
39073912 triangles = new int[stripcount];
....@@ -6354,6 +6359,7 @@
63546359
63556360 void InitWeights()
63566361 {
6362
+ new Exception().printStackTrace();
63576363 System.exit(0);
63586364 int n = 0;
63596365 int b = 0;
....@@ -8227,7 +8233,7 @@
82278233 if (!trimmed)
82288234 return;
82298235
8230
- GrafreeD.linkUV = false;
8236
+ Grafreed.linkUV = false;
82318237
82328238 try
82338239 {