Create sphere triangulation
I want to create a sphere triangulation with given some input data like double radius, int stacks, int slices, double phiStart, double phiSweep, double thetaStart and double thetaSweep.
How can we create indices and vertices for sphere with the given data so that can further be used to create sphere triangulations.
I am very new to this 3D world and seeking help to learn and move forward. Please tell me how to do it or give me some help link so i get hint for the algorithm?
Thanks in advance.