Calculating faces and vertices

See simple examples from the Collection of examples from discourse.threejs.org

BufferGeometryNonIndexed
BufferGeometryIndexed
and
NumberingHelperExamples

somewhat more sophisticated
MorphBoxSphere
RoundedBoxFlatUV