implement cube.mesh and smoothshading