add_cylinder
Add a cylinder to a JupyterCAD document with customizable radius, height, angle, color, and position. Specify revolution angle for partial or full cylinders and rotation parameters for precise placement.
Instructions
Add a cylinder to the document.
:param name: The name that will be used for the object in the document. :param radius: The radius of the cylinder. :param height: The height of the cylinder. :param angle: The revolution angle of the cylinder (0: no cylinder, 180: half cylinder, 360: full cylinder). :param color: The color of the cylinder in hex format (e.g., "#FF5733") or RGB float list. :param position: The shape 3D position. :param rotation_axis: The 3D axis used for the rotation. :param rotation_angle: The shape rotation angle, in degrees. :return: The document itself.
Warning: This tool will update the JCAD document at the given jcad_path.
To understand the current state of the document, you MUST first use the 'get_current_cad_design' tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| angle | No | ||
| color | No | #808080 | |
| height | No | ||
| radius | No | ||
| position | No | ||
| jcad_path | Yes | ||
| rotation_axis | No | ||
| rotation_angle | No |