Create Cone Geometry with Rectangular Base in Three. Js?

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.

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

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.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.