Create cone geometry with rectangular base in three.js?

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.

enter image description here

0

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like