Currently, I am utilizing Three.js and my objective is to construct a pyramid shape with its apex removed. The base of the pyramid should be a rectangle instead of a square, while the top should also be a rectangle, but not in equal proportions.
Here is an image from Wikipedia for reference, although I am aiming to customize it to accommodate rectangle bases:
https://i.sstatic.net/jtNthKLF.png
I believe the term for this modified shape is Prismoid, except in my design the base will be rectangular rather than squared. Additionally, I intend to have the apex positioned off-center from the base to create shapes like Parallelepiped.
- https://en.wikipedia.org/wiki/Prismatoid
- https://en.wikipedia.org/wiki/Frustum
- https://en.wikipedia.org/wiki/Parallelepiped
My exploration led me to CylinderGeometry and PolyhedronGeometry, however, both necessitate that all sides of the base are of equal length.
What method would you recommend as the most efficient approach to creating these complex shapes?