There are 2 problems. One is that delegation is not set up intuitively, so the user is required to do this:
cube.sides.left.mesh.setColor(...)
This is too much unnecessary typing.
The other problem is that it doesn't work. Cube always initializes itself to the default color of its faces, which is white, unless a color has been explicitly set on the whole cube.
Also, it would be nice to be able to do this:
cube = new Jax.Mesh.Cube
left:
# options to be delegated to left
right:
# options to be delegated to right
# other sides use their defaults
This works as expected:
This does not:
There are 2 problems. One is that delegation is not set up intuitively, so the user is required to do this:
This is too much unnecessary typing.
The other problem is that it doesn't work. Cube always initializes itself to the default color of its faces, which is white, unless a color has been explicitly set on the whole cube.
Also, it would be nice to be able to do this: