Create cone geometry with rectangular base in three.js?
Olivia Zamora
I want to create the Cone Geometry with rectangular base in three.js. How could I do that?
I'm providing the image here so that i can make some sense what I'm speaking.
1 Answer
Cone with a square base is a specific case of a cylinder with 4 sides and one of the base radius equal to 0.
You can create generic cylinder with:
THREE.CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded)A specific example would be:
THREE.CylinderGeometry(0, 30, 80, 4, 1, true); 5