.. | .. |
---|
49 | 49 | |
---|
50 | 50 | cMesh(Object3D bRep) |
---|
51 | 51 | { |
---|
52 | | - this("Me:" + bRep.name, bRep); |
---|
| 52 | + this("Mesh:" + bRep.name, bRep); |
---|
53 | 53 | } |
---|
54 | 54 | |
---|
55 | 55 | cMesh(String name, Object3D bRep) |
---|
.. | .. |
---|
404 | 404 | if (ref == null) |
---|
405 | 405 | return; |
---|
406 | 406 | |
---|
407 | | - GrafreeD.epsequal = IsEpsEqual(); |
---|
408 | | - GrafreeD.linkUV = IsLinkUV(); |
---|
| 407 | + Grafreed.epsequal = IsEpsEqual(); |
---|
| 408 | + Grafreed.linkUV = IsLinkUV(); |
---|
409 | 409 | |
---|
410 | 410 | // BoundaryRep oldrep = transientrep; |
---|
411 | 411 | |
---|
.. | .. |
---|
417 | 417 | ref.count = 1; |
---|
418 | 418 | |
---|
419 | 419 | Object3D obj = ref.GetObject(); |
---|
| 420 | + Object3D par = obj.parent; |
---|
| 421 | + obj.parent = null; |
---|
420 | 422 | |
---|
421 | 423 | // may 2014: side-effect with UVs!! |
---|
422 | | - obj = (Object3D) GrafreeD.clone(obj); |
---|
423 | | - |
---|
424 | | - merge(obj); |
---|
| 424 | + merge((Object3D) Grafreed.clone(obj)); |
---|
425 | 425 | |
---|
| 426 | + obj.parent = par; |
---|
| 427 | + |
---|
426 | 428 | ref.count = keepcount; |
---|
427 | 429 | |
---|
428 | 430 | System.out.println("RESULT " + ref + "; #vertices = " + bRep.VertexCount() + "; #faces = " + bRep.FaceCount()); |
---|
429 | 431 | bRep.Trim(false, false,false,false,false); |
---|
430 | 432 | System.out.println("------> TRIM " + ref + "; #vertices = " + bRep.VertexCount() + "; #faces = " + bRep.FaceCount()); |
---|
431 | 433 | |
---|
432 | | - GrafreeD.epsequal = false; |
---|
| 434 | + Grafreed.epsequal = false; |
---|
433 | 435 | |
---|
434 | 436 | if (transientrep != null && bRep.VertexCount() == transientrep.VertexCount()) |
---|
435 | 437 | { |
---|
.. | .. |
---|
470 | 472 | } |
---|
471 | 473 | else |
---|
472 | 474 | // geometry is merged... |
---|
473 | | - refcopy = (BoundaryRep) GrafreeD.clone(transientrep); |
---|
| 475 | + refcopy = (BoundaryRep) Grafreed.clone(transientrep); |
---|
474 | 476 | } |
---|
475 | 477 | |
---|
476 | 478 | transient cVector minima = new cVector(); |
---|
.. | .. |
---|
560 | 562 | maxima = new cVector(); |
---|
561 | 563 | } |
---|
562 | 564 | |
---|
| 565 | + CameraPane.CreateSelectedPoint(); |
---|
| 566 | + |
---|
563 | 567 | // ref.getBounds(minima, maxima, true); |
---|
564 | 568 | // Phys.reference.set((maxima.x+minima.x)/2,(maxima.y+minima.y)/2,(maxima.z+minima.z)/2); |
---|
565 | 569 | //ref. |
---|