Shape extrude sketch
shape_extrude_sketchDraw closed 2D loops on any plane and extrude them along the plane normal to build solids; supports holes and add/cut booleans.
Instructions
Shape Studio (SketchUp-style): draw closed 2D loops on ANY plane and extrude them along the plane normal. plane = {origin:[x,y,z], normal:[nx,ny,nz], x_axis:[ax,ay,az]} (x_axis ⟂ normal; y = normal × x_axis); loops = [[[u,v],...], ...] in plane coords, even-odd fill so inner loops become holes. distance (m, sign = along/against normal). mode "new" makes a separate solid; "add"/"cut" fuses into / carves out of target_id (the result replaces target in the tree). Booleans are watertight (manifold kernel), so coplanar faces are fine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| name | No | ||
| color | No | ||
| loops | Yes | ||
| plane | Yes | ||
| surf_id | No | ||
| distance | Yes | ||
| target_id | No | Required for add/cut |