# Cylinder

## <img src="https://3375153115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5uhW8FwQpXQj8tHUULMo%2Fuploads%2FMXmbZVTD7tMScVr1LzWv%2FG1_02_SOLID_CYLINDER.png?alt=media&#x26;token=1b96aabe-567c-4689-9e75-fad267c5549b" alt="" data-size="line"> Cylinder <a href="#profiles" id="profiles"></a>

The Cylinder command draws an Extrusion cylinder.

#### Command-line options

* DirectionConstraint: Direction constraints restrict the direction of the cylinder.

  1.None: Pick or type a number to set the height.

  2.Vertical: Creates a cylinder perpendicular to the construction plane

  3.AroundCurve: Draws the base circle perpendiculart to the picked point on a curve. The center line of the cylinder will be tangent to the curve.
* Solid: Caps the top and bottom openings or leave them open.
* Radius: Draw the base circle by picking the center point and a radius point.
* 2Point: Draws the base circle from two opposite points.
* 3Point: Draws the base circle through three points.
* Tangent: Draws the base circle tangent to one, two, or three curves.
* FitPoints: Draws the base circle by fitting to selected points, control points, or mesh vertices.
* BothSides: Creates a cylinder symmetrical across the base circle. The height of the cylinder is twice as long as you specify.

**Steps**

1. Draw the base circle.
2. Pick a location or type a number to set the height.

   The DirectionConstraint options define the positive height differently.

For more information, please refer to the [Rhino documentation](https://docs.mcneel.com/rhino/8/help/en-us/commands/cylinder.htm?Highlight=Cylinder).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rhinoartisan.com/commands/solid/basic-geometry/cylinder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
