Refactor heightmap mesh component