# yade-users team mailing list archive

## Re: [Question #707090]: How to generate a cylinder?

 Thread Previous • Date Previous • Date Next • Thread Next

```Question #707090 on Yade changed:

Megan posted a new comment:
To generate a cylinder, you can follow these steps:

Define the dimensions: Determine the desired height and radius of the
cylinder. The height represents the distance between the two circular
faces, and the radius determines the size of the cylinder's circular
base.

Create the base circle: Start by drawing a circle with the chosen
radius. You can use a compass or any other drawing tool to ensure the
accuracy of the shape.

Extend the height: From the circumference of the base circle, draw a
vertical line upward or downward, representing the height of the
cylinder. Make sure it is perpendicular to the base circle.

Duplicate the base circle: At the end of the vertical line, draw another
circle with the same radius as the base circle. This circle will form
the top face of the cylinder.

Connect the circles: Use straight lines to connect the corresponding
points on the base and top circles. This will create the curved surface
of the cylinder.

Erase unnecessary lines: Remove any construction lines or overlapping
parts to clean up the drawing and clarify the shape of the cylinder.

Shade or color (optional): If you want to add depth or realism to the
representation, you can shade the cylinder's curved surface or color it
using different tones.

Keep in mind that these instructions apply to manual drawing on paper or
using graphic software. If you are looking for a mathematical or
programming approach to generating a cylinder, the steps may vary
depending on the specific context or programming language you are using.

--