started indexed mesh implementation to handle sharp edges properly