I think its a matter of the situation, maybe someone will come along and correct me if I am wrong, however....
The only reason I would use a OC3D is if I needed to do something with all the O3D inside the container at once, example rotate them all the same way at the same time. That way it saves more than just a few lines of code eventually it could save tons of code and headaches. Otherwise I would go with the mesh3 = mesh method because you have more functions available to it. As far as a benifit to using the clone method I think its only the saving lines thing, I really do not see any other benifit because as it renders it still renders multiple meshes and causes the same problems doing it individually would (i.e. affecting performance). On Jul 17, 4:58 pm, desgraci <[email protected]> wrote: > i was thinking that gives me some ideas, but doesnt solves all the > questions i formulated. > > 1. it is better to use > > model3 = new ObjectContainer3D(mesh.clone()); > or > mesh3=mesh; > > cause, u cant get addlisteners in a OC3D, but u can in a Mesh. > > 2. ofc if u overflow the code with a lots of this looks like the same, > so what will the use of clone? > > 3. besides saving lines, theres actually a benefit of using the clone > method? > > that are about the correct when to and whent dont use the clone.
