Click to See Complete Forum and Search --> : calculate sphere vertices,indices,and polygon


jolley
August 29th, 2005, 03:35 AM
see that a sphere is constructed by lots of rings and segments,the more rings and segments,the smoother the sphere will become.
so there maybe some formulas that can be applied,but i am not clear about that,
to make myself understood,there are something getting me confused!

numbersOfVertices=(ring+1)*(segment+1);
numbersOfIndices=2*ring*(segment+1);
numbersOfPolygons=numbersOfIndices-1;

yeah there is the whole story.can anyone explain it to me ?
thanks,
regards,
jolley