Revision 4f81e0c8
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshRectangles.java | ||
---|---|---|
176 | 176 |
|
177 | 177 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
178 | 178 |
/** |
179 |
* deep copy.
|
|
179 |
* Copy constructor.
|
|
180 | 180 |
*/ |
181 |
public MeshRectangles(MeshRectangles mesh) |
|
181 |
public MeshRectangles(MeshRectangles mesh, boolean deep)
|
|
182 | 182 |
{ |
183 |
super(mesh); |
|
183 |
super(mesh,deep);
|
|
184 | 184 |
} |
185 | 185 |
|
186 | 186 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
187 | 187 |
/** |
188 |
* deep copy. |
|
188 |
* Copy the Mesh. |
|
189 |
* |
|
190 |
* @param deep If to be a deep or shallow copy of mVertAttribs1, i.e. the array holding vertices, |
|
191 |
* normals and inflates (the rest, in particular the mVertAttribs2 containing texture |
|
192 |
* coordinates and effect assocciations, is always deep copied) |
|
189 | 193 |
*/ |
190 |
public MeshRectangles deepCopy()
|
|
194 |
public MeshRectangles copy(boolean deep)
|
|
191 | 195 |
{ |
192 |
return new MeshRectangles(this); |
|
196 |
return new MeshRectangles(this,deep);
|
|
193 | 197 |
} |
194 | 198 |
} |
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.