How do I get vertices and faces from THREE.BufferGeometry

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

TorusFlat
RemoveTriangles

ChangeColorOfFaceByClick