Three.js + Delaunator

I’m not sure I fully understand how it works, this part specifically

> // triangulate x, z
> var indexDelaunay = Delaunator.from(
>   points3d.map(v => {
>     return [v.x, v.z];
>   })
> );

Why doesn’t it take the y coordinate into account? I tried using this to triangulate a cube but I can either get the top or a side face depending on whether in the code above I write [v.x, v.z] or [v.x, v.y]

I tried making the bottom part of the cube larger and I see the bottom points, but not the bottom triangles. So this Delaunator can only triangulate an open surface seen from a certain direction? Isn’t it possible to use this to triangulate a closed surface?