Revision 4f81e0c8
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshSphere.java | ||
---|---|---|
274 | 274 |
|
275 | 275 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
276 | 276 |
/** |
277 |
* deep copy.
|
|
277 |
* Copy cconstructor.
|
|
278 | 278 |
*/ |
279 |
public MeshSphere(MeshSphere mesh) |
|
279 |
public MeshSphere(MeshSphere mesh, boolean deep)
|
|
280 | 280 |
{ |
281 |
super(mesh); |
|
281 |
super(mesh,deep);
|
|
282 | 282 |
} |
283 | 283 |
|
284 | 284 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
285 | 285 |
/** |
286 |
* deep copy. |
|
286 |
* Copy the Mesh. |
|
287 |
* |
|
288 |
* @param deep If to be a deep or shallow copy of mVertAttribs1, i.e. the array holding vertices, |
|
289 |
* normals and inflates (the rest, in particular the mVertAttribs2 containing texture |
|
290 |
* coordinates and effect assocciations, is always deep copied) |
|
287 | 291 |
*/ |
288 |
public MeshSphere deepCopy()
|
|
292 |
public MeshSphere copy(boolean deep)
|
|
289 | 293 |
{ |
290 |
return new MeshSphere(this); |
|
294 |
return new MeshSphere(this,deep);
|
|
291 | 295 |
} |
292 | 296 |
} |
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.