.. | .. |
---|
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) |
---|
.. | .. |
---|
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()); |
---|
.. | .. |
---|
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. |
---|