I’m using Three.js and I’m trying to make a pyramid, but with its top cut off, and its base is a rectangle, and the top is also a rectangle, but not in the same proportions.
Heres the pic from wikipedia, but I want it to allow for rectangle bases
I think the word for it is Prismoid, except in my case the base isnt going to be a square, but a rectangle. Another thing I want to do with this is make the top not centered on the base, allowing me to create things like Parallelepiped
- https://en.wikipedia.org/wiki/Prismatoid
- https://en.wikipedia.org/wiki/Frustum
- https://en.wikipedia.org/wiki/Parallelepiped
I’ve looked into CylinderGeometry and PolyhedronGeometry, but they both require that the base sides are all the same length.
What’s the most effective way of making these shapes?