.. | .. |
---|
355 | 355 | // DynamicNode handle = new DynamicNode(center.x, center.y, center.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0); |
---|
356 | 356 | // Phys.addHandle(handle); |
---|
357 | 357 | |
---|
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 |
---|
359 | 361 | { |
---|
360 | 362 | DynamicNode dn = Phys.allNodes.get(k); |
---|
361 | 363 | DynamicNode handle = new DynamicNode(dn.position.x, dn.position.y, dn.position.z, 0 /*0 , 1 or Float.MAX_VALUE*/, 0); |
---|
.. | .. |
---|
402 | 404 | if (ref == null) |
---|
403 | 405 | return; |
---|
404 | 406 | |
---|
405 | | - GraphreeD.epsequal = IsEpsEqual(); |
---|
406 | | - GraphreeD.linkUV = IsLinkUV(); |
---|
| 407 | + GrafreeD.epsequal = IsEpsEqual(); |
---|
| 408 | + GrafreeD.linkUV = IsLinkUV(); |
---|
407 | 409 | |
---|
408 | 410 | // BoundaryRep oldrep = transientrep; |
---|
409 | 411 | |
---|
.. | .. |
---|
417 | 419 | Object3D obj = ref.GetObject(); |
---|
418 | 420 | |
---|
419 | 421 | // may 2014: side-effect with UVs!! |
---|
420 | | - obj = (Object3D) GraphreeD.clone(obj); |
---|
| 422 | + obj = (Object3D) GrafreeD.clone(obj); |
---|
421 | 423 | |
---|
422 | 424 | merge(obj); |
---|
423 | 425 | |
---|
.. | .. |
---|
427 | 429 | bRep.Trim(false, false,false,false,false); |
---|
428 | 430 | System.out.println("------> TRIM " + ref + "; #vertices = " + bRep.VertexCount() + "; #faces = " + bRep.FaceCount()); |
---|
429 | 431 | |
---|
430 | | - GraphreeD.epsequal = false; |
---|
| 432 | + GrafreeD.epsequal = false; |
---|
431 | 433 | |
---|
432 | 434 | if (transientrep != null && bRep.VertexCount() == transientrep.VertexCount()) |
---|
433 | 435 | { |
---|
.. | .. |
---|
468 | 470 | } |
---|
469 | 471 | else |
---|
470 | 472 | // geometry is merged... |
---|
471 | | - refcopy = (BoundaryRep) GraphreeD.clone(transientrep); |
---|
| 473 | + refcopy = (BoundaryRep) GrafreeD.clone(transientrep); |
---|
472 | 474 | } |
---|
473 | 475 | |
---|
474 | 476 | transient cVector minima = new cVector(); |
---|
.. | .. |
---|
482 | 484 | } |
---|
483 | 485 | |
---|
484 | 486 | |
---|
485 | | - void DrawNode(CameraPane display, Object3D /*Composite*/ root, boolean selected) // ?? |
---|
| 487 | + void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected) // ?? |
---|
486 | 488 | { |
---|
487 | 489 | // ?????? if (size() > 0) |
---|
488 | 490 | // { |
---|
.. | .. |
---|
642 | 644 | gl.glEnable(gl.GL_LIGHTING); |
---|
643 | 645 | } |
---|
644 | 646 | |
---|
645 | | - if (live && display.isLIVE() && display.drawMode == CameraPane.DEFAULT) |
---|
| 647 | + if (live && Globals.isLIVE() && display.DrawMode() == CameraPane.DEFAULT) |
---|
646 | 648 | { |
---|
647 | 649 | //System.out.println("UPDATE"); |
---|
648 | 650 | if (Phys == null) |
---|