form_crease
Crease or smooth T-spline control-mesh edges by selecting points near edge midpoints, regenerating the B-Rep.
Instructions
Crease (sharp) or uncrease (smooth) control-mesh edges of a T-spline body; the B-Rep is regenerated.
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. On error the crease flags already changed are
restored.
Returns {"body": , "changed": number of edges whose flag changed}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | T-spline body ref (form_list / form_create_*) | |
| near | Yes | Points near edge midpoints | |
| units | No | Unit of lengths and points (default mm) | mm |
| creased | No | true = crease, false = smooth | |
| tolerance | No | Max distance from a point to its element, in `units` |