surface_untrim
Removes boundary loops (holes or outer trim) from surface faces to restore the underlying surface, with optional extension of the untrimmed faces by a set distance.
Instructions
Untrim faces of surface bodies: remove their boundary loops (holes / outer trim).
loop_type internal fills holes, external restores the outer boundary of the underlying surface, all does both. Faces of solid bodies are refused (unstitch them first). Refs: faces from inspect_query.
Errors: a face of a solid, extension_distance with internal -> INVALID_PARAMS (nothing changed).
Returns {"feature", "health", "created_bodies" / "modified_bodies": [{ref, type, name, is_solid}], "removed_bodies"}.
Example: surface_untrim(faces=[], loop_type="internal")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faces | Yes | Face refs (inspect_query); re-query after later features | |
| units | No | Unit of plain-number lengths and points | mm |
| loop_type | No | all (default), external (outer boundary) or internal (holes) | all |
| extension_distance | No | Extend the untrimmed faces by this length (all / external) |