add_occ_shape
Add an OpenCascade TopoDS shape to a JupyterCAD document, specifying position and rotation.
Instructions
Add an OpenCascade TopoDS shape to the document.
You need pythonocc-core installed in order to use this method.
:param shape: The Open Cascade shape to add. :param name: The name that will be used for the object in the document. :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 | ||
| shape | Yes | ||
| position | No | ||
| jcad_path | Yes | ||
| rotation_axis | No | ||
| rotation_angle | No |