Height segment for Ring Geometry or Width Segment for Cylinder Geometry

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?

1 Like
  1. Blender.
  2. What you describe sounds just like a cylinder - wouldn’t CylinderBufferGeometry work?
1 Like

@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.
cylinder

maybe you want a torus geometry with scale


1 Like

@jaya_kannan
Extrude a shape of circle with a circular hole.
Or use LatheBufferGeometry with rectangular shape.
Creativity is up to you :slight_smile:

1 Like

@prisoner849. Can you please share a sample with jsfiddle :grin:

Of course, I can :slight_smile:
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.

3 Likes

Here is even another way. Using CSG.


2 Likes