form_insert_edge
Insert edges next to control-mesh edges of a T-spline body to add detail where needed, regenerating the B-Rep. Pick edges by their midpoint points from form_inspect.
Instructions
Insert edges next to control-mesh edges of a T-spline body (more faces where detail is needed); the B-Rep is regenerated.
Uses the preview Fusion API (FormFeature.insertEdge): when it is missing the tool fails with FUSION_API_ERROR reason=api_unavailable (nothing changed). The edges must be of one loop, else Fusion refuses (FUSION_API_ERROR).
Control-mesh edges have no stable ids: pick them by points (mm by default) - take
the exact edge midpoints from form_inspect. A point with no edge within tolerance,
or equally near two edges (symmetric meshes), fails with INVALID_PARAMS and
details.nearest; nothing is changed.
Returns {"body": , "changed": selected edges, "new_edges": n}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | T-spline body ref (form_list / form_create_*) | |
| mode | No | simple (default) or exact | simple |
| near | Yes | Points near midpoints of edges of one loop | |
| units | No | Unit of lengths and points (default mm) | mm |
| position | No | Where the new edge goes, -1..1 | |
| tolerance | No | Max distance from a point to its element, in `units` | |
| both_sides | No | Insert on both sides |