cut
Cut a 3D object by subtracting a tool object from a base object. If no operands are specified, automatically uses the last two created objects and updates the JupyterCAD document.
Instructions
Apply a cut boolean operation between two objects. If no objects are provided as input, the last two created objects will be used as operands.
:param name: The name that will be used for the object in the document. :param base: The base object that will be used for the cut. Can be the name of the object or its index in the objects list. :param tool: The tool object that will be used for the cut. Can be the name of the object or its index in the objects list. :param refine: Whether or not to refine the mesh during the cut computation. :param color: The color in hex format (e.g., "#FF5733") or RGB float list. Defaults to the base object's color if None. :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 |
|---|---|---|---|
| base | No | ||
| name | No | ||
| tool | No | ||
| color | No | ||
| refine | No | ||
| position | No | ||
| jcad_path | Yes | ||
| rotation_axis | No | ||
| rotation_angle | No |