form_move
Moves T-spline control-mesh vertices, faces, or a whole body by a vector, regenerating the B-Rep; select elements by nearby points from inspection.
Instructions
Move control-mesh vertices or faces of a T-spline body, or the whole body, by a vector; the B-Rep is regenerated.
Control-mesh vertices and faces have no stable ids: pick them by points (mm by
default) - take the exact positions for near from form_inspect (vertex position,
face center). A point with no element within tolerance, or equally near two
elements (symmetric meshes), fails with INVALID_PARAMS and details.nearest; nothing
is changed. On a symmetric body Fusion mirrors the move to the symmetric elements.
Errors: zero vector, missing near for vertex/face -> INVALID_PARAMS. If a move fails
midway, the elements already moved are moved back.
Returns {"body": , "changed": n}.
Example: form_move(body="", kind="face", near=[[5, 5, 20]], vector=[0, 0, 5])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | T-spline body ref (form_list / form_create_*) | |
| kind | Yes | vertex, face (picked by `near`) or body (whole body) | |
| near | No | Points near the vertices / faces to move (positions from form_inspect); ignored for kind=body | |
| units | No | Unit of lengths and points (default mm) | mm |
| vector | Yes | Translation in `units` | |
| tolerance | No | Max distance from a point to its element, in `units` |