The new versions only use buffer geometry.
You have to work with the indices.
const posArray = mesh.geometry.attributes.position.array;
const indArray = mesh.geometry.index.array;
from the Collection of examples from discourse.threejs.org
UPDATE
In this example you can see how to create a buffer geometry yourself. SkewedRectangularPyramid