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
Get step-by-step solutions from verified subject matter experts
