Revision 4f81e0c8
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshTriangles.java | ||
---|---|---|
125 | 125 |
|
126 | 126 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
127 | 127 |
/** |
128 |
* deep copy.
|
|
128 |
* Copy constructor.
|
|
129 | 129 |
*/ |
130 |
public MeshTriangles(MeshTriangles mesh) |
|
130 |
public MeshTriangles(MeshTriangles mesh, boolean deep)
|
|
131 | 131 |
{ |
132 |
super(mesh); |
|
132 |
super(mesh,deep);
|
|
133 | 133 |
} |
134 | 134 |
|
135 | 135 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
136 | 136 |
/** |
137 |
* deep copy. |
|
137 |
* Copy the Mesh. |
|
138 |
* |
|
139 |
* @param deep If to be a deep or shallow copy of mVertAttribs1, i.e. the array holding vertices, |
|
140 |
* normals and inflates (the rest, in particular the mVertAttribs2 containing texture |
|
141 |
* coordinates and effect assocciations, is always deep copied) |
|
138 | 142 |
*/ |
139 |
public MeshTriangles deepCopy()
|
|
143 |
public MeshTriangles copy(boolean deep)
|
|
140 | 144 |
{ |
141 |
return new MeshTriangles(this); |
|
145 |
return new MeshTriangles(this,deep);
|
|
142 | 146 |
} |
143 | 147 |
} |
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.