Revision 4f81e0c8
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshQuad.java | ||
---|---|---|
72 | 72 |
|
73 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
74 | 74 |
/** |
75 |
* deep copy.
|
|
75 |
* Copy constructor.
|
|
76 | 76 |
*/ |
77 |
public MeshQuad(MeshQuad mesh) |
|
77 |
public MeshQuad(MeshQuad mesh, boolean deep)
|
|
78 | 78 |
{ |
79 |
super(mesh); |
|
79 |
super(mesh,deep);
|
|
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
83 | 83 |
/** |
84 |
* deep copy. |
|
84 |
* Copy the Mesh. |
|
85 |
* |
|
86 |
* @param deep If to be a deep or shallow copy of mVertAttribs1, i.e. the array holding vertices, |
|
87 |
* normals and inflates (the rest, in particular the mVertAttribs2 containing texture |
|
88 |
* coordinates and effect assocciations, is always deep copied) |
|
85 | 89 |
*/ |
86 |
public MeshQuad deepCopy()
|
|
90 |
public MeshQuad copy(boolean deep)
|
|
87 | 91 |
{ |
88 |
return new MeshQuad(this); |
|
92 |
return new MeshQuad(this,deep);
|
|
89 | 93 |
} |
90 | 94 |
} |
Also available in: Unified diff
In library: allow a mixture of a deep and shallow copy of a Mesh ( mVertAttribs1 might be copied deeply or shallowly, mVertAttribs2 are always copied deeeply).
Port RubikCube to the new library.