surface_patch
Fills a closed sketch profile or B-Rep edge boundary with a new surface body, applying connected, tangent, or curvature continuity to patch openings.
Instructions
Patch surface: fill a closed boundary with a new surface body (Patch feature).
The boundary is a sketch profile, sketch curves or B-Rep edges (e.g. the free edges of an opening in a surface body). continuity/weight/flip apply to edges of bodies (ignored for sketch curves). Refs: profiles from sketch_profiles / sketch_draw, curves from sketch_* results, edges from inspect_query (refs of surface bodies change after trim/extend/stitch - take them from the latest results).
Next steps: close surfaces into a solid with surface_stitch and check is_solid; give a surface thickness with body_thicken.
Errors: join/cut operation, weight outside 0..1, a body ref -> INVALID_PARAMS (nothing changed); a boundary Fusion cannot fill -> FUSION_API_ERROR, rolled back.
Returns {"feature", "health", "created_bodies": [{ref, type, name, is_solid}], "modified_bodies", "removed_bodies"}.
Example: surface_patch(boundary=["profile:@0,0"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | No | Continuity weight 0..1 (default 0.5) | |
| boundary | Yes | Closed boundary: a profile ('profile:<sketch>@x,y' or a profile spec), sketch curve refs or edge refs (inspect_query); one open curve/edge is chained by Fusion | |
| operation | No | new_body (default) or new_component | new_body |
| continuity | No | connected (default), tangent or curvature to the edges' faces | connected |
| flip_continuity_direction | No | Flip the side the continuity is taken from |