Hi I need a ring type cylinder. the cylinder having the property to increase the height segment. But we can’t set the inner and outer radius for the cylinder geometry. So I tried the ring geometry. It is having the property to increase the thickness by setting the inner radius and outer radius. But the ring geometry doesn’t have the property for increasing the height. How to create a geometry as per my need?
@mjurczyk . Thank you for your reply. I need to create the geometry within three js with my script. So I don’t like to create the geometry using Blender. And My need is, in this cylinder buffer geometry, you can adjust the radius for increase the width. And you can set the height also. But I need to set the thickness which property is not available here.
I need to create a ring or cylinder like below.
Extrude a shape of circle with a circular hole.
LatheBufferGeometry with rectangular shape.
Creativity is up to you
@prisoner849. Can you please share a sample with jsfiddle
Of course, I can
But could you try something yourself?
There’s enough information in the docs and in the examples.
LatheBufferGeometry: just pass an array of 5 points, that form a rectangle, into its constructor. So you’ll get something like this:
How to extrude shapes: https://threejs.org/examples/?q=shapes#webgl_geometry_shapes There’s even the example with the brown circle, that has a circular hole.