Question: Write an analogous function that generates and returns the geometry of a cylinder. The function createCylinder(n, rad, len) returns the geometry of an n-sided cylinder

Write an analogous function that generates and returns the geometry of a cylinder. The function createCylinder(n, rad, len) returns the geometry of an n-sided cylinder of radius rad. It should be centered at the origin and aligned with the y-axis, so that the cylinder's top face lies in the plane y = len/2 and its bottom face in the plane y= -len/2. Do not use THREE.CylinderGeometry. Rather, your function should define the geometry as was done for ruled pyramids on my graphics site

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!