Normand Briere
2017-05-07 314b34423070cf127464da79a53cddf6b1c38587
BoundaryRep.java
....@@ -172,16 +172,16 @@
172172 bufV = other.bufV;
173173 bufF = other.bufF;
174174
175
- positions = (float[]) GraphreeD.clone(other.positions);
176
- normals = (float[]) GraphreeD.clone(other.normals);
177
- colors = (float[]) GraphreeD.clone(other.colors);
178
- uvmap = (float[]) GraphreeD.clone(other.uvmap);
179
- triangles = (int[]) GraphreeD.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[]) GraphreeD.clone(other.indices);
181
+ indices = (int[]) GrafreeD.clone(other.indices);
182182
183
- vertices = (Vector<Vertex>) GraphreeD.clone(other.vertices);
184
- faces = (Vector<Face>) GraphreeD.clone(other.faces);
183
+ vertices = (Vector<Vertex>) GrafreeD.clone(other.vertices);
184
+ faces = (Vector<Face>) GrafreeD.clone(other.faces);
185185 }
186186 else
187187 {
....@@ -1492,7 +1492,7 @@
14921492 InitFaceIndices();
14931493 }
14941494
1495
- BoundaryRep rep = (BoundaryRep) GraphreeD.clone(this);
1495
+ BoundaryRep rep = (BoundaryRep) GrafreeD.clone(this);
14961496 //float[] v = new float[100];
14971497
14981498 for (int loops=1; --loops>=0;)
....@@ -1522,7 +1522,7 @@
15221522 InitFaceIndices();
15231523 }
15241524
1525
- BoundaryRep rep = (BoundaryRep) GraphreeD.clone(this);
1525
+ BoundaryRep rep = (BoundaryRep) GrafreeD.clone(this);
15261526 //float[] v = new float[100];
15271527
15281528 for (int loops=10; --loops>=0;)
....@@ -2163,7 +2163,7 @@
21632163 // if (slow)
21642164 // aout 2013
21652165 // sept 2013 merde...
2166
- W = 13;
2166
+ W = 3; // 13;
21672167
21682168 // POSERATE
21692169 if (CameraPane.tickcount > 0 || CameraPane.SLOWPOSE)
....@@ -2600,7 +2600,7 @@
26002600 // if (stepout && !playedonce)
26012601 // {
26022602 // // sound
2603
-// GraphreeD.wav.play();
2603
+// GrafreeD.wav.play();
26042604 // playedonce = true;
26052605 // }
26062606 //
....@@ -2644,7 +2644,7 @@
26442644
26452645 if (CameraPane.framecount - lastsoundtime > 30) // 0.25 secs
26462646 {
2647
- GraphreeD.wav.play((Math.random()+0.5)/Math.max(tmp.length2(),0.2)); //, 1);
2647
+ GrafreeD.wav.play((Math.random()+0.5)/Math.max(tmp.length2(),0.2)); //, 1);
26482648
26492649 lastsoundtime = CameraPane.framecount;
26502650 }
....@@ -3229,7 +3229,7 @@
32293229 k /= x*x + y*y;
32303230 }
32313231 else
3232
- GraphreeD.Assert(z == 1);
3232
+ GrafreeD.Assert(z == 1);
32333233
32343234 if (k < 0)
32353235 k = 0;
....@@ -4233,7 +4233,7 @@
42334233 int count = VertexCount();
42344234
42354235 // mars 2014
4236
- while (step >= count)
4236
+ while (step > count)
42374237 step /= 10;
42384238
42394239 for (int i = 0; i < count; i+=step)
....@@ -7391,7 +7391,7 @@
73917391 Trim();
73927392 Untrim();
73937393
7394
- BoundaryRep tmp = new BoundaryRep(); // (BoundaryRep) GraphreeD.clone(this);
7394
+ BoundaryRep tmp = new BoundaryRep(); // (BoundaryRep) GrafreeD.clone(this);
73957395
73967396 double minx = Float.POSITIVE_INFINITY;
73977397 double maxx = Float.NEGATIVE_INFINITY;
....@@ -8067,7 +8067,7 @@
80678067 if (!trimmed)
80688068 return;
80698069
8070
- GraphreeD.linkUV = false;
8070
+ GrafreeD.linkUV = false;
80718071
80728072 try
80738073 {