Removed redundant code - hardcoded densities, cube normals and sampling indiex.