Revision 4f81e0c8
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshJoined.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 39 |
/** |
40 |
* deep copy.
|
|
40 |
* Copy constructor.
|
|
41 | 41 |
*/ |
42 |
public MeshJoined(MeshJoined mesh) |
|
42 |
public MeshJoined(MeshJoined mesh, boolean deep)
|
|
43 | 43 |
{ |
44 |
super(mesh); |
|
44 |
super(mesh,deep);
|
|
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
48 | 48 |
/** |
49 |
* deep copy. |
|
49 |
* Copy the Mesh. |
|
50 |
* |
|
51 |
* @param deep If to be a deep or shallow copy of mVertAttribs1, i.e. the array holding vertices, |
|
52 |
* normals and inflates (the rest, in particular the mVertAttribs2 containing texture |
|
53 |
* coordinates and effect assocciations, is always deep copied) |
|
50 | 54 |
*/ |
51 |
public MeshJoined deepCopy()
|
|
55 |
public MeshJoined copy(boolean deep)
|
|
52 | 56 |
{ |
53 |
return new MeshJoined(this); |
|
57 |
return new MeshJoined(this,deep);
|
|
54 | 58 |
} |
55 | 59 |
|
56 | 60 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
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.