Normand Briere
2018-07-01 655810d1c4e710e7c85772b8dde96772dbcf274b
cMesh.java
....@@ -355,7 +355,9 @@
355355 // DynamicNode handle = new DynamicNode(center.x, center.y, center.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0);
356356 // Phys.addHandle(handle);
357357
358
- for (int k=Phys.allNodes.size(); --k>=0;) // warning: "add handle" adds a node
358
+ int size = Phys.allNodes.size();
359
+
360
+ for (int k=0; k < size; k++) // warning: "add handle" adds a node
359361 {
360362 DynamicNode dn = Phys.allNodes.get(k);
361363 DynamicNode handle = new DynamicNode(dn.position.x, dn.position.y, dn.position.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0);
....@@ -402,8 +404,8 @@
402404 if (ref == null)
403405 return;
404406
405
- GraphreeD.epsequal = IsEpsEqual();
406
- GraphreeD.linkUV = IsLinkUV();
407
+ GrafreeD.epsequal = IsEpsEqual();
408
+ GrafreeD.linkUV = IsLinkUV();
407409
408410 // BoundaryRep oldrep = transientrep;
409411
....@@ -417,7 +419,7 @@
417419 Object3D obj = ref.GetObject();
418420
419421 // may 2014: side-effect with UVs!!
420
- obj = (Object3D) GraphreeD.clone(obj);
422
+ obj = (Object3D) GrafreeD.clone(obj);
421423
422424 merge(obj);
423425
....@@ -427,7 +429,7 @@
427429 bRep.Trim(false, false,false,false,false);
428430 System.out.println("------> TRIM " + ref + "; #vertices = " + bRep.VertexCount() + "; #faces = " + bRep.FaceCount());
429431
430
- GraphreeD.epsequal = false;
432
+ GrafreeD.epsequal = false;
431433
432434 if (transientrep != null && bRep.VertexCount() == transientrep.VertexCount())
433435 {
....@@ -468,7 +470,7 @@
468470 }
469471 else
470472 // geometry is merged...
471
- refcopy = (BoundaryRep) GraphreeD.clone(transientrep);
473
+ refcopy = (BoundaryRep) GrafreeD.clone(transientrep);
472474 }
473475
474476 transient cVector minima = new cVector();