THREE.Face3()
, first three parameters are indices of vertices, the fourth one is normal, which must be THREE.Vector3()
and not a number.
You need to build two faces (triangles) for the base of the pyramid.
Take a look at codepen with a pyramid: Sci-fi Scene that I made - #7 by prisoner849 It’s made of THREE.BufferGeometry()
though.