align_shapes
Moves an object so a chosen face, edge, or vertex aligns with a target element; supports touch, center, and axis modes with optional offset.
Instructions
Move an object so the chosen element aligns with an element of the target.
Args:
element / element_index: Element on the object to move.
target_element / target_element_index: Element on the target.
mode: touch (face to face, normals opposing), center (centers coincide) or axis (cylindrical axes aligned).
offset: Extra distance along the target normal; positive moves away.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_name": "<doc_name>",
"obj_name": "<obj_name>",
"element": "<element>",
"element_index": "<element_index>",
"target_obj": "<target_obj>",
"target_element": "<target_element>",
"target_element_index": "<target_element_index>"
},
"name": "align_shapes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | touch | |
| offset | No | ||
| element | Yes | ||
| doc_name | Yes | ||
| obj_name | Yes | ||
| target_obj | Yes | ||
| element_index | Yes | ||
| target_element | Yes | ||
| target_element_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |