forgecad 0.10.3 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/assets/{AdminPage-CK7ObBz3.js → AdminPage-raksfnNA.js} +1 -1
  2. package/dist/assets/{BenchmarkPage-Ds7Z2doN.js → BenchmarkPage-DP3RxhPs.js} +2 -2
  3. package/dist/assets/{BlogPage-DlPbpt6A.js → BlogPage-D7Dos-vl.js} +1 -1
  4. package/dist/assets/{DocsPage-vZb3b3Y0.js → DocsPage-DO1kvBns.js} +34 -43
  5. package/dist/assets/{EditorApp-HLoKfe15.js → EditorApp-DQJmcmRT.js} +51 -17
  6. package/dist/assets/{EmbedViewer--KnqBKrJ.js → EmbedViewer-DFDUhOma.js} +2 -2
  7. package/dist/assets/{LandingPageProofDriven-C_LssmnA.js → LandingPageProofDriven-DbE_tp8-.js} +54 -36
  8. package/dist/assets/{LegalPage-DGsyo4n1.js → LegalPage-CominSso.js} +2 -2
  9. package/dist/assets/{PricingPage-BOE27B-R.js → PricingPage-CcVIN9yj.js} +2 -2
  10. package/dist/assets/{SettingsPage-f47cnk39.js → SettingsPage-DLWcP289.js} +1 -1
  11. package/dist/assets/{app-D6ccu2Xx.js → app-xW3hOdq9.js} +1343 -4004
  12. package/dist/assets/{backendInit-DbTkQN9J.js → backendInit-mDHk97u7.js} +12346 -3803
  13. package/dist/assets/cli/{render-BsngirjC.js → render--SIU27W_.js} +1909 -146
  14. package/dist/assets/{constructionHistoryWorker-PCwXrTDB.js → constructionHistoryWorker-uEe_Q7Kg.js} +2362 -835
  15. package/dist/assets/{evalWorker-CS63PfZu.js → evalWorker-BqyDHDcI.js} +7755 -3127
  16. package/dist/assets/{forgecad_geometry-CZ_IfuvA.js → forgecad_geometry-D8rWX7nQ.js} +1 -1
  17. package/dist/assets/{forgecad_geometry_bg-C3rQHfwg.wasm → forgecad_geometry_bg-ObqfqjJT.wasm} +0 -0
  18. package/dist/assets/{inspectWorker-Y4cOzNyA.js → inspectWorker-UXMxlcR8.js} +6550 -2943
  19. package/dist/assets/{jointPose-AMvCywzS.js → jointPose-bYMlwU3v.js} +1 -1
  20. package/dist/assets/{landing-proof-driven-ORyigZ6p.css → landing-proof-driven-_u4v_xQb.css} +71 -11
  21. package/dist/assets/{manifold-Crd_F2qx.js → manifold-BR7UYI4P.js} +1 -1
  22. package/dist/assets/{manifold-CBry38ly.js → manifold-CyOV5B9S.js} +2 -2
  23. package/dist/assets/{manifold-k2kRcc85.js → manifold-D4d5NQst.js} +1 -1
  24. package/dist/assets/{reportWorker-CWvn0CEv.js → reportWorker-DsaICZsn.js} +7320 -2827
  25. package/dist/cli/render.html +1 -1
  26. package/dist/docs/index.html +2 -2
  27. package/dist/docs-raw/AI/usage.md +17 -15
  28. package/dist/docs-raw/CLI.md +4 -2
  29. package/dist/docs-raw/component-model.md +2 -2
  30. package/dist/docs-raw/generated/assembly.md +76 -3
  31. package/dist/docs-raw/generated/concepts.md +36 -5
  32. package/dist/docs-raw/generated/core.md +185 -21
  33. package/dist/docs-raw/generated/curves.md +344 -6
  34. package/dist/docs-raw/generated/runtime-names.md +12 -12
  35. package/dist/docs-raw/generated/sketch.md +16 -3
  36. package/dist/docs-raw/guides/inspection-bundles.md +5 -3
  37. package/dist/docs-raw/guides/structural-fea.md +224 -0
  38. package/dist/docs-raw/simulation-workflow.md +1 -1
  39. package/dist/docs-raw/skills/{forgecad-make-a-model.md → forgecad-build-model.md} +18 -8
  40. package/dist/docs-raw/skills/{forgecad-spec-by-walking-through-it.md → forgecad-design-spec.md} +6 -6
  41. package/dist/docs-raw/skills/{forgecad-model-grader.md → forgecad-grade-model.md} +8 -6
  42. package/{dist-skill/website/skills/forgecad-visual-spec.md → dist/docs-raw/skills/forgecad-image-prompt.md} +7 -7
  43. package/dist/docs-raw/skills/{forgecad-render-inspect.md → forgecad-inspect-model.md} +6 -6
  44. package/{dist-skill/website/skills/forgecad-project.md → dist/docs-raw/skills/forgecad-project-sync.md} +5 -5
  45. package/dist/docs-raw/skills/{forgecad-3d-reconstruction.md → forgecad-reconstruct-cad-file.md} +7 -7
  46. package/dist/docs-raw/skills/{forgecad-image-replicator.md → forgecad-reconstruct-from-images.md} +12 -12
  47. package/dist/docs-raw/skills/{forgecad-mujoco-verify.md → forgecad-verify-mujoco.md} +6 -6
  48. package/dist/docs-raw/skills/forgecad.md +1 -0
  49. package/dist/docs-raw/skills/index.md +9 -12
  50. package/dist/index.html +9 -9
  51. package/dist/llms.txt +7 -7
  52. package/dist/sitemap.xml +16 -16
  53. package/dist-cli/{check-compiler-HPF2T2FS.js → check-compiler-7YAHVXYM.js} +1 -1
  54. package/dist-cli/{check-query-propagation-HYSLTXAB.js → check-query-propagation-ZRR6IOJW.js} +1 -1
  55. package/dist-cli/{chunk-WLUKAW3H.js → chunk-VNM67DIV.js} +29671 -24865
  56. package/dist-cli/forgecad.js +5906 -714
  57. package/dist-cli/forgecad_geometry_bg.wasm +0 -0
  58. package/dist-skill/CONTEXT.md +853 -45
  59. package/dist-skill/SKILL.md +1 -0
  60. package/dist-skill/docs/CLI.md +4 -2
  61. package/dist-skill/docs/generated/assembly.md +73 -3
  62. package/dist-skill/docs/generated/core.md +185 -21
  63. package/dist-skill/docs/generated/curves.md +343 -6
  64. package/dist-skill/docs/generated/runtime-names.md +12 -12
  65. package/dist-skill/docs/generated/sketch.md +16 -3
  66. package/dist-skill/docs/guides/inspection-bundles.md +5 -3
  67. package/dist-skill/docs/guides/structural-fea.md +224 -0
  68. package/dist-skill/library/README.md +9 -12
  69. package/dist-skill/library/{forgecad-make-a-model → forgecad-build-model}/SKILL.md +16 -6
  70. package/dist-skill/library/{forgecad-spec-by-walking-through-it → forgecad-design-spec}/SKILL.md +4 -4
  71. package/dist-skill/library/{forgecad-spec-by-walking-through-it → forgecad-design-spec}/references/master-prompt.md +1 -1
  72. package/dist-skill/library/{forgecad-model-grader → forgecad-grade-model}/SKILL.md +6 -4
  73. package/dist-skill/library/forgecad-grade-model/agents/openai.yaml +4 -0
  74. package/dist-skill/library/{forgecad-visual-spec → forgecad-image-prompt}/SKILL.md +5 -5
  75. package/dist-skill/library/forgecad-image-prompt/agents/openai.yaml +4 -0
  76. package/dist-skill/library/{forgecad-render-inspect → forgecad-inspect-model}/SKILL.md +4 -4
  77. package/dist-skill/library/{forgecad-project → forgecad-project-sync}/SKILL.md +3 -3
  78. package/dist-skill/library/{forgecad-3d-reconstruction → forgecad-reconstruct-cad-file}/SKILL.md +5 -5
  79. package/dist-skill/library/forgecad-reconstruct-cad-file/agents/openai.yaml +4 -0
  80. package/dist-skill/library/{forgecad-image-replicator → forgecad-reconstruct-from-images}/SKILL.md +10 -10
  81. package/dist-skill/library/forgecad-reconstruct-from-images/agents/openai.yaml +4 -0
  82. package/dist-skill/library/{forgecad-mujoco-verify → forgecad-verify-mujoco}/SKILL.md +4 -4
  83. package/dist-skill/website/skills/{forgecad-make-a-model.md → forgecad-build-model.md} +18 -8
  84. package/dist-skill/website/skills/{forgecad-spec-by-walking-through-it.md → forgecad-design-spec.md} +6 -6
  85. package/dist-skill/website/skills/{forgecad-model-grader.md → forgecad-grade-model.md} +8 -6
  86. package/{dist/docs-raw/skills/forgecad-visual-spec.md → dist-skill/website/skills/forgecad-image-prompt.md} +7 -7
  87. package/dist-skill/website/skills/{forgecad-render-inspect.md → forgecad-inspect-model.md} +6 -6
  88. package/{dist/docs-raw/skills/forgecad-project.md → dist-skill/website/skills/forgecad-project-sync.md} +5 -5
  89. package/dist-skill/website/skills/{forgecad-3d-reconstruction.md → forgecad-reconstruct-cad-file.md} +7 -7
  90. package/dist-skill/website/skills/{forgecad-image-replicator.md → forgecad-reconstruct-from-images.md} +12 -12
  91. package/dist-skill/website/skills/{forgecad-mujoco-verify.md → forgecad-verify-mujoco.md} +6 -6
  92. package/dist-skill/website/skills/forgecad.md +1 -0
  93. package/dist-skill/website/skills/index.md +9 -12
  94. package/examples/analysis/structural-stress-fea.forge.js +19 -0
  95. package/examples/api/blend-full-round.forge.js +37 -0
  96. package/examples/api/blend-variable-radius.forge.js +51 -0
  97. package/examples/api/curve-project-and-intersect.forge.js +59 -0
  98. package/examples/api/extrude-up-to-face.forge.js +47 -0
  99. package/examples/api/spoon-full-tang-handle.forge.js +148 -0
  100. package/examples/api/surface-boundarynet-dished-bowl.forge.js +63 -0
  101. package/examples/api/surface-fill-interior-constraints.forge.js +59 -0
  102. package/examples/api/texture-projection.forge.js +75 -0
  103. package/examples/assets/uv-grid.png +0 -0
  104. package/package.json +4 -1
  105. package/dist/docs-raw/skills/forgecad-blockout-model.md +0 -49
  106. package/dist/docs-raw/skills/forgecad-component-model.md +0 -53
  107. package/dist/docs-raw/skills/forgecad-reconstruction-benchmark.md +0 -60
  108. package/dist-skill/library/forgecad-3d-reconstruction/agents/openai.yaml +0 -4
  109. package/dist-skill/library/forgecad-blockout-model/SKILL.md +0 -42
  110. package/dist-skill/library/forgecad-component-model/SKILL.md +0 -46
  111. package/dist-skill/library/forgecad-image-replicator/agents/openai.yaml +0 -4
  112. package/dist-skill/library/forgecad-model-grader/agents/openai.yaml +0 -4
  113. package/dist-skill/library/forgecad-reconstruction-benchmark/SKILL.md +0 -48
  114. package/dist-skill/library/forgecad-reconstruction-benchmark/agents/openai.yaml +0 -4
  115. package/dist-skill/library/forgecad-visual-spec/agents/openai.yaml +0 -4
  116. package/dist-skill/website/skills/forgecad-blockout-model.md +0 -49
  117. package/dist-skill/website/skills/forgecad-component-model.md +0 -53
  118. package/dist-skill/website/skills/forgecad-reconstruction-benchmark.md +0 -60
  119. /package/dist/assets/{landing-proof-driven-DiGqdtWa.js → landing-proof-driven-DNPRKL_p.js} +0 -0
  120. /package/dist-skill/library/{forgecad-spec-by-walking-through-it → forgecad-design-spec}/references/default-profiles.md +0 -0
  121. /package/dist-skill/library/{forgecad-render-inspect → forgecad-inspect-model}/summarize_manifest.py +0 -0
  122. /package/dist-skill/library/{forgecad-image-replicator → forgecad-reconstruct-from-images}/scripts/compare_images.py +0 -0
  123. /package/dist-skill/library/{forgecad-mujoco-verify → forgecad-verify-mujoco}/scripts/mujoco_verify.py +0 -0
@@ -15,6 +15,7 @@ Smooth curves, lofted surfaces, swept solids, splines, and high-level product sk
15
15
  - [Route3D](#route3d)
16
16
  - [NurbsCurve3D](#nurbscurve3d)
17
17
  - [NurbsSurface](#nurbssurface)
18
+ - [Sheet](#sheet)
18
19
  - [PathBuilder](#pathbuilder) — Line Segments, Arcs, Curves, Closing & Output
19
20
  - [ProductSkin](#productskin)
20
21
  - [ProductSurfaceRef](#productsurfaceref)
@@ -78,6 +79,34 @@ const rail = Curve.BlendG2(
78
79
  **`CurveBlendG2Endpoint`** extends CurveBlendEndpoint
79
80
  - `curvature?: Vec3` — Optional endpoint curvature/second-derivative vector. Default is zero.
80
81
 
82
+ #### `Curve.Bridge(options: CurveBridgeOptions): NurbsCurve3D` — Bridge two existing curve endpoints with inferred tangent or curvature continuity.
83
+
84
+ This is the Onshape-style "select two curves and bridge them" primitive: ForgeCAD reads the endpoint positions, tangent directions, and NURBS curvature from the selected curves so callers do not hand-author tangent vectors. Use `continuity: 'G1'` for a cubic tangent bridge or the default `G2` for a quintic curvature bridge.
85
+
86
+ ```js
87
+ const leftRim = Curve.Fit([[20, -12, 0], [0, -18, 2], [-30, -14, 1]]);
88
+ const rightRim = Curve.Fit([[20, 12, 0], [0, 18, 2], [-30, 14, 1]]);
89
+ const roundedNose = Curve.Bridge({
90
+ from: { curve: leftRim, at: 'end' },
91
+ to: { curve: rightRim, at: 'end' },
92
+ continuity: 'G2',
93
+ });
94
+ ```
95
+
96
+ **`CurveBridgeOptions`**
97
+
98
+ | Option | Type | Description |
99
+ |--------|------|-------------|
100
+ | `from` | `CurveBridgeEndpoint` | Endpoint where the bridge starts. |
101
+ | `to` | `CurveBridgeEndpoint` | Endpoint where the bridge ends. |
102
+ | `continuity?` | `CurveBridgeContinuity` | Continuity target. Default `G2`. |
103
+ | `weight?` | `number` | Tangent reach relative to bridge chord. Default 0.6. |
104
+
105
+ **`CurveBridgeEndpoint`**
106
+ - `curve: CurveTrimInput` — Existing curve endpoint to bridge from or to.
107
+ - `at?: CurveBridgeEndpointAt` — Which endpoint of the curve to use. Default is `end`.
108
+ - `weight?: number` — Tangent reach relative to bridge chord. Overrides `CurveBridgeOptions.weight` for this side.
109
+
81
110
  #### `Curve.Arc(options: CurveArcOptions): NurbsCurve3D` — Create an exact circular 3D arc from start, end, and start tangent.
82
111
 
83
112
  The returned curve is a rational quadratic `NurbsCurve3D`, split into stable spans when needed, so it can feed `sweep` without sampling the authoring intent away.
@@ -142,6 +171,52 @@ const loop = Curve.Fit(
142
171
  - `tolerance?: number` — Maximum allowed interpolation residual in model units. Default 1e-7.
143
172
  - `closed?: boolean` — Interpolate a closed periodic loop through the points. The loop closes from the last point back to the first automatically — do not repeat the first point at the end.
144
173
 
174
+ #### `Curve.ProjectOnSurface(curve: NurbsCurve3D | Vec3[], sheet: Sheet, options?: CurveProjectOnSurfaceOptions): NurbsCurve3D` — Project a curve onto a `Sheet` along the surface normal and return the exact NURBS foot curve.
175
+
176
+ This is the "drape a curve onto a surface" primitive: each sampled point of the source curve is inverted onto the sheet (closest surface point via the analytic jet), and the foot points are fitted with `Curve.Fit`. Use it to trace a planned trim line, seam, or graphic onto a freeform panel, then sweep or trim from the real on-surface curve.
177
+
178
+ The source may be an exact `NurbsCurve3D` or a `Vec3[]` polyline (for example a placed 2D path). With `{ closed: true }` the result is a periodic loop, for draping a closed boundary onto the sheet. Set `maxGap` to require that every sample lands within a distance of the surface; the call throws if any sample misses (no silent fallback).
179
+
180
+ ```js
181
+ const panel = Surface.Net().cage(cage);
182
+ const guide = Curve.Line([-20, 0, 30], [20, 0, 30]);
183
+ const seam = Curve.ProjectOnSurface(guide, panel);
184
+ const bead = sweep(circle2d(0.6), seam);
185
+ ```
186
+
187
+ **`CurveProjectOnSurfaceOptions`**
188
+
189
+ | Option | Type | Description |
190
+ |--------|------|-------------|
191
+ | `samples?` | `number` | Coarse samples taken along the source curve before per-sample projection. Default 64. |
192
+ | `refineIterations?` | `number` | Newton refinement iterations of the (u, v) foot-point per sample. Default 8. |
193
+ | `tolerance?` | `number` | Interpolation tolerance passed to Curve.Fit for the result. Default 1e-4. |
194
+ | `closed?` | `boolean` | Fit a closed periodic loop (use when the source curve is a closed loop). Default false. |
195
+ | `maxGap?` | `number` | Max allowed projection gap; throws if any sample lands farther than this from the surface foot. Default Infinity (no gate). |
196
+
197
+ #### `Curve.Intersect(sheetA: Sheet, sheetB: Sheet, options?: CurveIntersectOptions): NurbsCurve3D[]` — Intersect two `Sheet` surfaces and return the exact NURBS intersection branches.
198
+
199
+ This is curve-following surface-surface intersection (SSI): a transversal marcher follows each intersection branch using the analytic surface jets (the intersection tangent is `cross(normalA, normalB)`), converging every step onto both surfaces, then fits each branch with `Curve.Fit`. A single pair of sheets can intersect in several disjoint curves, so the result is an array (empty when the sheets do not meet).
200
+
201
+ Only transversal intersections (where the surfaces cross and the intersection tangent `cross(normalA, normalB)` is well defined) are detected. A tangential / grazing contact (where the surface normals are parallel and the tangent is undefined) is not marched and may be reported as no-intersection (an empty array) — tangential SSI is a documented follow-on, not a silent fallback.
202
+
203
+ ```js
204
+ const wing = Surface.Net().cage(wingCage);
205
+ const rib = Surface.Net().cage(ribCage);
206
+ const [seam] = Curve.Intersect(wing, rib);
207
+ const weld = sweep(circle2d(0.5), seam);
208
+ ```
209
+
210
+ **`CurveIntersectOptions`**
211
+
212
+ | Option | Type | Description |
213
+ |--------|------|-------------|
214
+ | `samples?` | `number` | Grid resolution per axis for seeding the marcher (samples x samples on sheetA). Default 48. |
215
+ | `step?` | `number` | Marching step as a fraction of sheetA's average sample spacing. Default 0.5. |
216
+ | `refineIterations?` | `number` | Newton iterations to converge each marched point onto both surfaces. Default 12. |
217
+ | `tolerance?` | `number` | Convergence/coincidence tolerance in model units. Default 1e-4. |
218
+ | `fitTolerance?` | `number` | Fit tolerance passed to Curve.Fit. Default 1e-3. |
219
+
145
220
  #### `Curve.Trim<T extends CurveTrimInput>(curve: T, start: number, end: number): CurveTrimOutput<T>` — Extract an exact curve segment from normalized parameter `start` to `end`.
146
221
 
147
222
  `NurbsCurve3D` inputs are trimmed with exact knot insertion/subdomain extraction. Polyline point arrays are trimmed by arclength over their exact line segments. Sampled `Curve3D` splines are rejected until ForgeCAD has a tolerance-controlled rebuild path.
@@ -150,6 +225,68 @@ const loop = Curve.Fit(
150
225
 
151
226
  `NurbsCurve3D` inputs reverse control points, weights, and knots. Polyline point arrays are cloned and reversed. Sampled `Curve3D` splines are rejected until ForgeCAD has a tolerance-controlled rebuild path.
152
227
 
228
+ #### `Curve.closestParameter(curve: CurveClosestParameterInput, point: Vec3, options?: CurveClosestParameterOptions): number` — Find the normalized parameter on an exact curve closest to a world point.
229
+
230
+ This is the query companion to `Curve.Trim()`: use it to locate where a construction point lands on an existing rail, surface boundary, or edge curve, then trim/sweep from that real geometric station instead of copying the original construction points.
231
+
232
+ `NurbsCurve3D` inputs are searched by curve parameter with coarse sampling plus local refinement. Polyline point arrays are projected onto their exact line segments and return an arclength-normalized parameter.
233
+
234
+ ```js
235
+ const start = Curve.closestParameter(sheet.frontCurve, [-20, -12, 4]);
236
+ const end = Curve.closestParameter(sheet.frontCurve, [20, -12, 4]);
237
+ const rimRail = Curve.Trim(sheet.frontCurve, start, end);
238
+ ```
239
+
240
+ **`CurveClosestParameterOptions`**
241
+ - `samples?: number` — Coarse samples before local refinement. Default 96.
242
+
243
+ #### `Curve.join(curves: CurveJoinInput[], options?: CurveJoinOptions): Vec3[]` — Join touching curve segments into one sampled sweep path.
244
+
245
+ This is the composite-curve primitive for downstream features that need to follow several real edges as one path: rolled rims, seam beads, trim strips, weld beads, and surface-boundary inlays. ForgeCAD validates that adjacent segment endpoints touch; it will not silently reverse or bridge gaps.
246
+
247
+ ```js
248
+ const rimPath = Curve.join([
249
+ Curve.Reverse(Curve.Trim(sheet.frontCurve, 0, u)),
250
+ sheet.leftCurve,
251
+ Curve.Trim(sheet.rearCurve, 0, u),
252
+ ]);
253
+ const rim = sweep(ellipse(0.8, 0.35), rimPath);
254
+ ```
255
+
256
+ **`CurveJoinOptions`**
257
+ - `samples?: number` — Points sampled per exact curve segment. Default 32.
258
+ - `tolerance?: number` — Maximum allowed gap between adjacent segment endpoints. Default 1e-6.
259
+
260
+ #### `Curve.placeOnXY(path: CurvePath2D, z?: number, options?: CurvePathPlacementOptions): Vec3[]` — Place a 2D path onto the XY plane at world Z.
261
+
262
+ The returned 3D point array can feed `Surface.Net`, `Curve.Fit`, `sweep`, `Curve.Trim`, and any other curve consumer that accepts points.
263
+
264
+ ```js
265
+ const rail = Curve.placeOnXY(path().moveTo(0, 0).bezierTo(30, 8, 60, -4, 90, 0), 12);
266
+ const smoothRail = Curve.Fit(rail);
267
+ ```
268
+
269
+ **`CurvePathPlacementOptions`**
270
+ - `samples?: number` — Optional sample count when [`path`](/docs/sketch#path) is a path-like object.
271
+
272
+ #### `Curve.placeOnXZ(path: CurvePath2D, y?: number, options?: CurvePathPlacementOptions): Vec3[]` — Place a 2D path onto the XZ plane at world Y.
273
+
274
+ The path's first coordinate becomes X and the second becomes Z.
275
+
276
+ #### `Curve.placeOnYZ(path: CurvePath2D, x?: number, options?: CurvePathPlacementOptions): Vec3[]` — Place a 2D path onto the YZ plane at world X.
277
+
278
+ The path's first coordinate becomes Y and the second becomes Z. This is the direct "sketch cross-sections on offset planes" primitive for surface nets.
279
+
280
+ #### `Curve.placeOnPlane(path: CurvePath2D, options: CurvePlanePlacementOptions): Vec3[]` — Place a 2D path onto an arbitrary world plane.
281
+
282
+ `origin` is the 2D sketch origin in world space. `xAxis` and `yAxis` are perpendicular world directions for the local sketch axes.
283
+
284
+
285
+ **`CurvePlanePlacementOptions`** extends CurvePathPlacementOptions
286
+ - `origin: Vec3` — World-space origin of the 2D sketch plane.
287
+ - `xAxis: Vec3` — World-space direction for the sketch X axis.
288
+ - `yAxis: Vec3` — World-space direction for the sketch Y axis.
289
+
153
290
  #### `Curve.Route: typeof Route3D` — Build analytic 3D line/arc routes for sweeps.
154
291
 
155
292
  `Curve.Route.fromPolyline()` is the canonical route API. It returns a `Route3D` value object, preserving exact route segments, named port frames, and the lowerable `route3d` sweep compile plan.
@@ -250,7 +387,7 @@ A closed spline (default) returns a filled profile. An open spline requires a st
250
387
  | `strokeWidth?` | `number` | For open splines, provide stroke width to return a solid Sketch. If omitted for open splines, an error is thrown. |
251
388
  | `join?` | `"Round" \| "Square"` | Stroke join for open splines. Default 'Round'. |
252
389
 
253
- #### `loft(profiles: Sketch[], heights: number[], options?: LoftOptions): Shape` — Loft between multiple sketches along Z stations.
390
+ #### `loft(profiles: Sketch[], heights: (number | EndCondition)[], options?: LoftOptions): Shape` — Loft between multiple sketches along Z stations.
254
391
 
255
392
  Profiles can differ in topology and vertex count: interpolation is done on signed-distance fields and meshed with level-set extraction. Heights must be strictly increasing. Compatible loft stacks can also stay on the maintained export-backend path.
256
393
 
@@ -258,6 +395,8 @@ The surface is smooth through 3+ stations (C1 spanwise interpolation, like CAD l
258
395
 
259
396
  Performance note: loft is significantly heavier than primitive/extrude/revolve. If the part is axis-symmetric (bottles, vases, knobs), prefer revolve().
260
397
 
398
+ `EndCondition` — defined in [sketch](/docs/sketch).
399
+
261
400
  #### `sweep(profile: Sketch, path: SweepPathInput, options?: SweepOptions): Shape`
262
401
 
263
402
  **`SweepOptions`**
@@ -437,6 +576,91 @@ Uses Algorithm A2.3 basis-function derivatives with the rational quotient rule,
437
576
 
438
577
  #### `tessellate(resU?: number, resV?: number): { positions: Vec3[]; normals: Vec3[]; indices: number[]; }` — Tessellate the surface into a triangle mesh. Returns positions, normals, and triangle indices.
439
578
 
579
+ ### `Sheet`
580
+
581
+ A parametric open surface value (control grid + knots + analytic differential geometry).
582
+
583
+ **Properties:**
584
+
585
+ | Property | Type | Description |
586
+ |----------|------|-------------|
587
+ | `surface` | `BSplineSurface` | — |
588
+
589
+ **Methods:**
590
+
591
+ #### `get frontEdge(): SheetEdge` — Edge naming follows parameter direction (documented): front=v0, rear=v1, left=u0, right=u1.
592
+
593
+ #### `get frontCurve(): NurbsCurve3D` — Exact curve along the front boundary (`v = 0`).
594
+
595
+ #### `get rearCurve(): NurbsCurve3D` — Exact curve along the rear boundary (`v = 1`).
596
+
597
+ #### `get leftCurve(): NurbsCurve3D` — Exact curve along the left boundary (`u = 0`).
598
+
599
+ #### `get rightCurve(): NurbsCurve3D` — Exact curve along the right boundary (`u = 1`).
600
+
601
+ #### `curveAlong(edge: SheetEdge): NurbsCurve3D` — Extract an exact NURBS iso-curve from one of this sheet's boundary edges.
602
+
603
+ Use this when a downstream feature should be driven by the actual sheet boundary, such as a swept rim, seam bead, trim strip, or adjacent blend.
604
+
605
+ `SheetEdge` — defined in [core](/docs/core).
606
+
607
+ #### `curveAlongU(vInput: number): NurbsCurve3D` — Extract an exact NURBS iso-curve in the sheet U direction at fixed `v`.
608
+
609
+ Use this for centerline rails, ribs, beads, and trim features that live on the interior of a freeform sheet instead of on a boundary edge.
610
+
611
+ #### `curveAlongV(uInput: number): NurbsCurve3D` — Extract an exact NURBS iso-curve in the sheet V direction at fixed `u`.
612
+
613
+ Use this for cross-surface rails, seam lines, straps, and inspection paths that should be driven by the sheet parameterization rather than global axes.
614
+
615
+ #### `pathAlong(edge: SheetEdge, options?: SheetPathAlongOptions): Vec3[]` — Sample a world-space path along a sheet boundary edge.
616
+
617
+ Use this when a downstream feature should follow the real surface edge but does not need to stay an exact NURBS curve, for example a lip, gasket bead, trim strip, weld seam, or inlay lifted off the surface by `normalOffset`.
618
+
619
+ `SheetPathAlongOptions` — defined in [core](/docs/core).
620
+
621
+ #### `pathAlongBoundary(spans: SheetBoundaryPathSpan[], options?: SheetBoundaryPathOptions): Vec3[]` — Sample one connected path across ordered sheet boundary edge spans.
622
+
623
+ This is the composite-boundary primitive for rolled rims, weld beads, gaskets, trim strips, and inlays that follow several sheet edges as one continuous rail. Span `start` / `end` values may be normalized parameters or world points; world points are resolved to the closest point on that edge so callers do not have to manually invoke `Curve.closestParameter()`.
624
+
625
+ `SheetBoundaryPathSpan` — defined in [core](/docs/core).
626
+
627
+ `SheetBoundaryPathOptions` — defined in [core](/docs/core).
628
+
629
+ #### `pathAlongU(vInput: number, options?: SheetPathAlongOptions): Vec3[]` — Sample a world-space path in the sheet U direction at fixed `v`.
630
+
631
+ Unlike `curveAlongU()`, this can lift points along the analytic normal with `normalOffset`, which is the common path for swept ribs, inlays, and raised details on a freeform carrier surface.
632
+
633
+ #### `pathAlongV(uInput: number, options?: SheetPathAlongOptions): Vec3[]` — Sample a world-space path in the sheet V direction at fixed `u`.
634
+
635
+ Use this for lifted cross-surface features where a sampled path is more useful than an exact iso-curve, for example straps, grooves, or probes.
636
+
637
+ #### `frameAt(uInput: number, vInput: number, options?: SheetFrameOptions): SheetFrame` — Build an orthonormal local work frame on the sheet.
638
+
639
+ This is the "construct tangent plane/frame on a surface" primitive for downstream sketches, profiles, fixtures, inspection probes, and features that must be oriented from the sheet itself rather than global axes.
640
+
641
+ `SheetFrameOptions` — defined in [core](/docs/core).
642
+
643
+ #### `framePerpendicularToU(uInput: number, vInput: number, options?: SheetFrameOptions): SheetFrame` — Build a section work frame perpendicular to the sheet's U direction.
644
+
645
+ This is the "plane normal to path" primitive for ribs, raised handles, bosses, and other details whose cross-sections should be sketched across a carrier surface while marching along the surface U direction. The returned frame can be passed directly to `Shape.sliceOnFrame()`.
646
+
647
+ #### `framePerpendicularToV(uInput: number, vInput: number, options?: SheetFrameOptions): SheetFrame` — Build a section work frame perpendicular to the sheet's V direction.
648
+
649
+ Use this when the guide path runs in the surface V direction and the sketch profile should span the U direction while its height follows the surface normal. The returned frame can be passed directly to `Shape.sliceOnFrame()`.
650
+
651
+ #### `toShape(options?: { resolution?: number; }): Shape` — Return this open sheet as a renderable surface Shape.
652
+
653
+ #### `thicken(wall: number, options?: { resolution?: number; }): Shape` — Offset the sheet along its analytic normals into a watertight solid shell of the given wall thickness. Throws if the wall would self-intersect on a concave region (no silent degenerate solid).
654
+
655
+ #### `matchEdge(edge: SheetEdge): MatchEdgeBuilder` — Per-edge continuity match against a neighbor (returns a NEW Sheet).
656
+
657
+ - `get rearEdge(): SheetEdge`
658
+ - `get leftEdge(): SheetEdge`
659
+ - `get rightEdge(): SheetEdge`
660
+ - `pointAt(u: number, v: number): Vec3`
661
+ - `normalAt(u: number, v: number): Vec3`
662
+ - `curvatureAt(u: number, v: number): SurfaceCurvature`
663
+
440
664
  ### `PathBuilder`
441
665
 
442
666
  **Line Segments**
@@ -1132,7 +1356,7 @@ Canonical exact/smooth 3D curve constructors.
1132
1356
 
1133
1357
  `Curve.*` is the public home for reference curves and route centerlines that feed `sweep`, `variableSweep`, route visualization, and future path consumers. Standalone 3D curve constructors have been collapsed into this namespace.
1134
1358
 
1135
- Members (full entries under [Curves & Surfacing](#curves-surfacing)): `Curve.Blend`, `Curve.BlendG2`, `Curve.Arc`, `Curve.Line`, `Curve.Nurbs`, `Curve.Fit`, `Curve.Trim`, `Curve.Reverse`, `Curve.Route`, `Curve.Helix`.
1359
+ Members (full entries under [Curves & Surfacing](#curves-surfacing)): `Curve.Blend`, `Curve.BlendG2`, `Curve.Bridge`, `Curve.Arc`, `Curve.Line`, `Curve.Nurbs`, `Curve.Fit`, `Curve.ProjectOnSurface`, `Curve.Intersect`, `Curve.Trim`, `Curve.Reverse`, `Curve.closestParameter`, `Curve.join`, `Curve.placeOnXY`, `Curve.placeOnXZ`, `Curve.placeOnYZ`, `Curve.placeOnPlane`, `Curve.Route`, `Curve.Helix`.
1136
1360
 
1137
1361
  ### `Surface`
1138
1362
 
@@ -1141,6 +1365,31 @@ Members (full entries under [Curves & Surfacing](#curves-surfacing)): `Curve.Ble
1141
1365
  - `Cone(options: SurfaceConeOptions): Shape` — Create a finite analytic conical or frustum sheet, optionally bounded by start/end angles.
1142
1366
  - `Sphere(options: SurfaceSphereOptions): Shape` — Create a finite analytic spherical sheet bounded by longitude and latitude ranges.
1143
1367
  - `Torus(options: SurfaceTorusOptions): Shape` — Create a finite analytic torus sheet bounded by major and tube angle ranges.
1368
+ - `Sweep(profile: SurfaceSweepProfileInput, spine: SweepPathInput, options?: SurfaceSweepOptions): Sheet` — Sweep an open 2D profile path along a 3D spine to create an open surface sheet.
1369
+
1370
+ This is the surface-first counterpart to the solid `sweep()` function. Use it for class-A/product workflows where the shape starts as an infinitely thin carrier sheet, then becomes physical material with `.thicken(...)`. The profile's local X axis maps across the sheet, local Y maps along the swept frame's up/normal direction, and the spine direction becomes sheet U.
1371
+
1372
+ ```js
1373
+ const sideProfile = Curve.Fit(Curve.placeOnXZ(path().moveTo(0, 0).bezierTo(40, -8, 90, 8, 140, 3)));
1374
+ const crossSection = path().moveTo(-20, 2).bezierTo(-8, -4, 8, -4, 20, 2);
1375
+ const sheet = Surface.Sweep(crossSection, sideProfile);
1376
+ const thinPart = sheet.thicken(1.2);
1377
+ ```
1378
+ - `Loft(input: SurfaceLoftInput): Sheet` — Loft an open surface sheet through ordered profile stations.
1379
+
1380
+ This is the surface-first counterpart to solid lofts: profiles are open 2D section curves, point stations intentionally collapse a smooth tip, and guide curves can pin named connection landmarks such as rims or low points. The result is an open `Sheet`; call `.thicken(...)` to make physical material.
1381
+
1382
+ ```js
1383
+ const sheet = Surface.Loft({
1384
+ axis: 'X',
1385
+ profiles: [
1386
+ { at: -40, point: [-40, 0, 0] },
1387
+ { at: 0, profile: path().moveTo(-12, 2).bezierTo(-4, -4, 4, -4, 12, 2) },
1388
+ { at: 40, profile: path().moveTo(-5, 0).lineTo(5, 0) },
1389
+ ],
1390
+ connections: [{ name: 'lowPoint', profileParameter: 0.5 }],
1391
+ });
1392
+ ```
1144
1393
  - `Nurbs(controlGrid: Vec3[][], options?: NurbsSurfaceOptions): Shape` — Create an exact NURBS surface from a grid of control points.
1145
1394
 
1146
1395
  The control grid is indexed as `controlGrid[u][v]` — each row is a curve in the V direction, and columns trace curves in the U direction. With default options this builds a bicubic non-rational B-spline sheet with uniform clamped knots; `NurbsSurfaceOptions` controls degrees, weights, knots, trim loops, tessellation, domain, and an optional `thickness` to return a thin solid instead of an open sheet.
@@ -1166,20 +1415,109 @@ Members (full entries under [Curves & Surfacing](#curves-surfacing)): `Curve.Ble
1166
1415
  const panel = Surface.Patch({ bottom, top, left, right }).thicken(1.5);
1167
1416
  ```
1168
1417
  - `Boundary(input: SurfaceBoundaryInput): Shape`
1169
- - `Fill(input: SurfaceFillInput): Shape`
1418
+ - `Fill(input: SurfaceFillInput): Shape` — Create an n-sided open surface sheet from 3 or more boundary curves (energy-minimizing constrained fill).
1419
+
1420
+ Boundaries form a closed loop of any size (n >= 3). They are exact by default: pass `NurbsCurve3D` values or `Shape.edge()` refs, or set `{ approximate: true }` to accept sampled `Curve3D`/`Vec3[]` boundaries. Use `match` to make a named boundary G0/G1/G2-tangent to a neighboring face. The result is an open sheet — call `.thicken(t)` for a thin solid.
1421
+
1422
+ Two optional fields pull the fill onto interior features (OCCT backend only; the Truck/SDF backends reject them):
1423
+
1424
+ - `through` — interior constraint curves the surface must pass through (not part of the boundary loop). These are matched positionally (G0) only; G1/G2 on a free interior curve is not honored, so a non-`'G0'` `continuity` throws.
1425
+ - `points` — isolated interior points the surface must interpolate.
1426
+
1427
+ ```js
1428
+ const skin = Surface.Fill({
1429
+ boundaries: [
1430
+ { name: 'a', curve: edgeA }, { name: 'b', curve: edgeB },
1431
+ { name: 'c', curve: edgeC }, { name: 'd', curve: edgeD }, { name: 'e', curve: edgeE },
1432
+ ],
1433
+ match: { a: { target: neighbor.edge('top'), continuity: 'G1' } },
1434
+ through: [{ curve: interiorSpine }], // pull the fill onto an internal feature line
1435
+ points: [[10, 10, 4]], // pin an interior bump
1436
+ });
1437
+ ```
1170
1438
  - `Sew(shapes: Shape[], options?: { tolerance?: number; }): Shape`
1171
1439
  - `Solid(input: Shape | Shape[], options?: SurfaceSolidOptions): Shape` — Sew surface faces or consume an existing sewn shell and make a solid B-rep.
1172
1440
  - `Extend(shape: Shape, options: SurfaceExtendOptions): Shape`
1173
1441
  - `Trim(shape: Shape, tool: Shape | SurfacePlaneOp): Shape`
1174
1442
  - `Split(shape: Shape, tool: Shape | SurfacePlaneOp): [ Shape, Shape ]`
1175
1443
  - `Match(shape: Shape, options: { edge: "u0" | "u1" | "v0" | "v1"; target: EdgeRef; continuity?: SurfaceContinuity; }): Shape`
1176
- - `Net(): CurveNet` — Begin a curve-network (Gordon) surface — the class-A keystone. Chain `.lengthwise(...)/.crosswise(...)` (or `.alongRails(a,b).sections(...)`, or `.cage(grid)`), then `.thicken(wall)` to get a solid Shape. Returns a fluent [`Sheet`](/docs/core#sheet) builder with analytic point/normal/curvature queries and named edges.
1444
+ - `Net(): CurveNet` — Begin a curve-network (Gordon) surface — the class-A keystone. Chain `.lengthwise(...)/.crosswise(...)` (or `.alongRails(a,b).sections(...)`, or `.cage(grid)`), then `.thicken(wall)` to get a solid Shape. Returns a fluent `Sheet` builder with analytic point/normal/curvature queries and named edges.
1445
+ - `BoundaryNet(): CurveNet` — Begin a **Boundary Surface** — the canonical class-A surfacing primitive (SolidWorks "Boundary Boss/Base", Onshape "Boundary surface", Rhino NetworkSrf). It fills a curve cage exactly like `Net` (same Gordon interior), then adds the two foundational boundary capabilities a real boundary surface has:
1446
+
1447
+ 1. **Per-side continuity** — `.matchStartU/.matchEndU/.matchStartV/.matchEndV` enforce G0/G1/G2 across a side, either matching an adjacent sheet's edge (tangent/curvature) or imposing an explicit cross-boundary tangent.
1448
+ 2. **Closed / periodic form** — `.closedU()/.closedV()` weld a direction's two ends into a tangent-continuous loop, so a closed-rim surface (e.g. a bowl's around-rim seam) is smooth with NO G0 kink.
1449
+
1450
+ Returns the same fluent builder as `Net` (cage/families/degree plus the new boundary methods); finish with `.toSheet()` or `.thicken(wall)`. Verify a matched seam with `Analysis.EdgeMatch`.
1451
+
1452
+ ```js
1453
+ // Smooth closed-rim dished bowl: a closed rim + radial sections, welded.
1454
+ const bowl = Surface.BoundaryNet()
1455
+ .lengthwise(...radialSections) // rim -> center, one per around-rim station
1456
+ .closedV() // weld the around-rim seam (no kink)
1457
+ .thicken(1.2);
1458
+ ```
1459
+
1460
+ ```js
1461
+ // Match a fender panel to the hood with curvature (G2) continuity.
1462
+ const fender = Surface.BoundaryNet()
1463
+ .lengthwise(sill, belt, crown)
1464
+ .crosswise(nose, aPillar)
1465
+ .matchStartV({ edge: hood.rearEdge, continuity: 2 })
1466
+ .toSheet();
1467
+ ```
1468
+
1469
+ U-sides then V-sides, so clean continuity is guaranteed along edge interiors, not exactly at the four corners (same limitation as `Sheet.matchEdge`).
1177
1470
 
1178
1471
  ### `Blend`
1179
1472
 
1180
- - `Edge(options: BlendEdgeOptions): Shape`
1473
+ - `Edge(options: BlendEdgeOptions): Shape` — Fillet one or more edges with constant or variable radius.
1474
+
1475
+ Pass `variableRadius` for a tapered or station-law blend — it overrides the constant `radius`. Variable radius requires `--backend occt`.
1476
+
1477
+ Orientation caveat: for a linear `{ start, end }` taper, `start` maps to the matched edge's first vertex (u=0), whose orientation is not guaranteed to match the named edge's start. If the taper runs the wrong way, pass a `stations` law (explicit `at` positions) or swap `start`/`end`.
1478
+
1479
+ ```js
1480
+ // Constant radius
1481
+ let b = box(40, 20, 10)
1482
+ b = Blend.Edge({ edges: [b.edge('top-front')], radius: 3 })
1483
+ ```
1484
+
1485
+ ```js
1486
+ // Linear taper from 1mm to 5mm along the edge
1487
+ b = Blend.Edge({ edges: [b.edge('top-front')], variableRadius: { start: 1, end: 5 } })
1488
+ ```
1489
+
1490
+ ```js
1491
+ // Station law — bulge in the middle
1492
+ b = Blend.Edge({ edges: [b.edge('top-front')], variableRadius: {
1493
+ stations: [{ at: 0, radius: 1 }, { at: 0.5, radius: 4 }, { at: 1, radius: 1 }] } })
1494
+ ```
1181
1495
  - `Surface(options: BlendSurfaceOptions): Shape`
1182
- - `Bridge(edgeA: SheetEdge, edgeB: SheetEdge): BridgeBuilder` — Build a transition strip between two `Surface.Net` sheet edges. Chain `.bulge(a, b)` then `.g0()/.g1()/.g2()` for the continuity order. Returns a [`Sheet`](/docs/core#sheet); verify the seam with `Analysis.EdgeMatch`.
1496
+ - `Bridge(edgeA: SheetEdge, edgeB: SheetEdge): BridgeBuilder` — Build a transition strip between two `Surface.Net` sheet edges. Chain `.bulge(a, b)` then `.g0()/.g1()/.g2()` for the continuity order. Returns a `Sheet`; verify the seam with `Analysis.EdgeMatch`.
1497
+ - `Face(options: BlendFaceOptions): Shape` — Fillet every edge SHARED by a pair of faces — a "face fillet". Resolves the shared edges of the two faces and rolls a constant or variable-radius blend along all of them. Requires `--backend occt`.
1498
+
1499
+ ```js
1500
+ let body = box(80, 50, 30).faces({ lid: 'top', wall: 'side-left' })
1501
+ body = Blend.Face({ faces: [body.face('lid'), body.face('wall')], radius: 4 })
1502
+ ```
1503
+
1504
+ ```js
1505
+ // Variable radius along the shared edges
1506
+ body = Blend.Face({ faces: [body.face('lid'), body.face('wall')],
1507
+ variableRadius: { start: 2, end: 6 } })
1508
+ ```
1509
+ - `FullRound(options: BlendFullRoundOptions): Shape` — Full round — roll a blend over a narrow center face so it is consumed and its two neighbouring faces meet tangentially (classic 3-face full round). The radius defaults to half the center-face span. Requires `--backend occt`.
1510
+
1511
+ ```js
1512
+ let bar = box(60, 8, 20).faces({ topRail: 'top', left: 'side-left', right: 'side-right' })
1513
+ bar = Blend.FullRound({ centerFace: bar.face('topRail') })
1514
+ ```
1515
+
1516
+ ```js
1517
+ // Explicit neighbours
1518
+ bar = Blend.FullRound({ centerFace: bar.face('topRail'),
1519
+ sideFaces: [bar.face('left'), bar.face('right')] })
1520
+ ```
1183
1521
 
1184
1522
  ### `Analysis`
1185
1523
 
@@ -18,18 +18,18 @@ activateBackend, Analysis, arcSlot, assembly, Assembly, Blend, bom, box
18
18
  cameraTrajectory, Carrier, chamfer, circle2d, Circle2D, circularLayout, circularPattern, circularPattern2d
19
19
  coalesceEdges, compareWith, connector, console, constrainedSketch, Curve, Curve3D, cutPlane
20
20
  cylinder, difference, difference2d, dim, draft, ellipse, explodeView, faceProfile
21
- fillet, Function, gcode, GCodeBuilder, getActiveBackend, global, globalThis, group
22
- Import, ImportedAssembly, initKernel, intersection, intersection2d, intersectWithPlane, joint, Laser
23
- lib, Line2D, linearPattern, linearPattern2d, loadFont, loft, Loft, mirrorCopy
24
- mock, ngon, NurbsCurve3D, NurbsSurface, offsetSolid, param, Param, path
25
- Point2D, Points, polygon, polygonVertices, port, Product, ProductPanelBuilder, ProductRibbonBuilder
26
- ProductSkin, ProductSkinBuilder, ProductStationBuilder, ProductSurfaceBuilder, ProductSurfaceRef, projectToPlane, queueMicrotask, rect
27
- Rectangle2D, roundedRect, Route3D, scene, Sculpt, sdf, SdfShape, selectEdge
28
- selectEdges, self, setActiveBackend, setImmediate, setInterval, setTimeout, Shape, ShapeGroup
29
- sheetMetal, SheetMetalPart, sheetStock, Sim, Sketch, sketchToDxf, sketchToSvg, slot
30
- SolvedAssembly, spec, sphere, spline2d, stroke, Surface, SurfaceBody, SurfaceMembers
31
- sweep, text2d, textWidth, torus, toShape, Transform, union, union2d
32
- variableSweep, verify, Viewport, window, Wood
21
+ Fea, fillet, Function, gcode, GCodeBuilder, getActiveBackend, global, globalThis
22
+ group, Import, ImportedAssembly, initKernel, intersection, intersection2d, intersectWithPlane, joint
23
+ Laser, lib, Line2D, linearPattern, linearPattern2d, loadFont, loft, Loft
24
+ mirrorCopy, mock, ngon, NurbsCurve3D, NurbsSurface, offsetSolid, param, Param
25
+ path, Point2D, Points, polygon, polygonVertices, port, Product, ProductPanelBuilder
26
+ ProductRibbonBuilder, ProductSkin, ProductSkinBuilder, ProductStationBuilder, ProductSurfaceBuilder, ProductSurfaceRef, projectToPlane, queueMicrotask
27
+ rect, Rectangle2D, roundedRect, Route3D, scene, Sculpt, sdf, SdfShape
28
+ selectEdge, selectEdges, self, setActiveBackend, setImmediate, setInterval, setTimeout, Shape
29
+ ShapeGroup, sheetMetal, SheetMetalPart, sheetStock, Sim, Sketch, sketchToDxf, sketchToSvg
30
+ slot, SolvedAssembly, spec, sphere, spline2d, stroke, Surface, SurfaceBody
31
+ SurfaceMembers, sweep, text2d, textWidth, torus, toShape, Transform, union
32
+ union2d, variableSweep, verify, Viewport, window, Wood, Wrap
33
33
  ```
34
34
 
35
35
  <!-- forgecad-skill:exclude-start symbol="compatibility runtime names" reason="Compatibility-only renamed runtime globals." -->
@@ -391,7 +391,22 @@ donut.region([40, 0]).extrude(10); // seed at radius 40, inside the ring
391
391
 
392
392
  **Promotion**
393
393
 
394
- #### `extrude(height: number, opts?: { twist?: number; divisions?: number; scaleTop?: number | Vec2; }): Shape` — Extrude this 2D sketch along Z to create a 3D solid. Supports twist and scale tapering.
394
+ #### `extrude(extent: number | EndCondition, opts?: { twist?: number; divisions?: number; scaleTop?: number | Vec2; }): Shape` — Extrude this 2D sketch along Z to create a 3D solid. Supports twist and scale tapering. The extent may be a numeric height or an `EndCondition` (up to a face, plane, or vertex).
395
+
396
+ **`EndCondition`**
397
+
398
+ | Option | Type | Description |
399
+ |--------|------|-------------|
400
+ | `upToFace?` | `FaceRef \| SketchFaceTarget` | Terminate flush with a planar face perpendicular to the feature direction. |
401
+ | `upToPlane?` | `PlaneOp` | Terminate at an arbitrary plane (ray-plane intersection along the direction). |
402
+ | `upToVertex?` | `Vec3` | Terminate at the plane through this point, perpendicular to the direction. |
403
+ | `offset?` | `number` | Signed offset PAST the resolved surface in the travel direction (default 0). |
404
+
405
+ `FaceRef` — defined in [core](/docs/core).
406
+
407
+ **`PlaneOp`**
408
+ - `normal: Vec3` — Plane normal. Need not be unit length; it is normalized internally.
409
+ - `offset?: number` — Signed offset of the plane along its normal from the world origin (default 0).
395
410
 
396
411
  #### `revolve(degrees?: number, segments?: number): Shape` — Revolve this 2D sketch around the world Z axis. Sketch X is radius; sketch Y becomes world Z height. Keep the profile at X > 0 unless it intentionally touches the axis.
397
412
 
@@ -412,8 +427,6 @@ const shifted = rect(4, 70).attachTo(plate, 'bottom-left', 'top-left', [5, 0]);
412
427
 
413
428
  Use this when a 2D profile should be oriented onto a 3D face before extrusion or other downstream operations.
414
429
 
415
- `FaceRef` — defined in [core](/docs/core).
416
-
417
430
  **Labels**
418
431
 
419
432
  #### `labelEdge(name: string): Sketch` — Label the single boundary edge (for circles, single-loop profiles). Returns a new sketch.
@@ -5,21 +5,21 @@ skill-order: 2
5
5
 
6
6
  # Inspection Bundles — Evidence Contract
7
7
 
8
- `forgecad inspect <family> <mode>` writes a deterministic bundle: evidence PNGs under `evidence/<type>/` plus a root `manifest.json`. **The manifest is the authoritative contract** — take file paths, encodings, per-view ranges, thresholds, tolerances, and identity maps from it; never hard-code bundle layout or infer object identity from object order. The PNGs are a visual index for locating findings, not standalone artifacts. Command tree, flags, and `--focus`/`--hide` filtering live in `docs/skill/CLI.md` and `forgecad inspect evidence`; the inspection workflow lives in the `forgecad-render-inspect` skill. Model-authored `scene()` background, lights, fog, and exposure are ignored for inspection captures so evidence stays stable; named scene views remain available via `--view`.
8
+ `forgecad inspect <family> <mode>` writes a deterministic bundle: evidence PNGs under `evidence/<type>/` plus a root `manifest.json`. **The manifest is the authoritative contract** — take file paths, encodings, per-view ranges, thresholds, tolerances, and identity maps from it; never hard-code bundle layout or infer object identity from object order. The PNGs are a visual index for locating findings, not standalone artifacts. Command tree, flags, and `--focus`/`--hide` filtering live in `docs/skill/CLI.md` and `forgecad inspect evidence`; the inspection workflow lives in the `forgecad-inspect-model` skill. Model-authored `scene()` background, lights, fog, and exposure are ignored for inspection captures so evidence stays stable; named scene views remain available via `--view`.
9
9
 
10
10
  Manifest evidence keys are evidence-oriented and stable for bundle readers: e.g. `fit interference` writes `manifest.evidence.collisions`, `physical components` writes `manifest.evidence.connectivity`.
11
11
 
12
12
  ## Reading Rules
13
13
 
14
14
  - **Identity evidence** (`objects`, `connectivity`, `distance`, `collisions`): colors are bundle-local labels. Resolve every color through the manifest; the same color never carries universal meaning across bundles. Edge pixels may be antialiased blends — match solid interior colors.
15
- - **Metric evidence** (`depth`, `thickness`, `roughness`, `distance`, `comparison`): read manifest thresholds, ranges, object summaries, and warnings before judging a PNG by eye.
15
+ - **Metric evidence** (`depth`, `thickness`, `throughThickness`, `roughness`, `distance`, `comparison`): read manifest thresholds, ranges, object summaries, and warnings before judging a PNG by eye.
16
16
  - Black pixels are background = `null` (in `floating`, black also means ground-reachable geometry).
17
17
  - Treat unexpected collisions, critical thin regions, high unresolved thickness, wrong component counts, floating bodies, or surprising gaps as **model bugs to fix and reinspect** — not rendering noise.
18
18
  - Use section evidence to inspect hidden internals; never turn the production model into a permanent cutaway.
19
19
 
20
20
  ## The Physical-Contact Model
21
21
 
22
- Connectivity, floating, distance, and thickness all share one contact model:
22
+ Connectivity, floating, distance, thickness, and minimum-solid-span (`throughThickness`) all share one contact model:
23
23
 
24
24
  - **Bbox is broadphase only.** Bbox overlap or bbox face contact never merges separate scene objects and is never support evidence.
25
25
  - Mesh surfaces within the contact tolerance (see manifest) count as **physically connected**.
@@ -62,6 +62,8 @@ normal = normalize((rgb / 255) * 2 - 1)
62
62
 
63
63
  **thickness** — area-weighted surface point samples cast through the object along their normals; red = below min, orange = below warn, green = acceptable, blue = above max (thresholds in manifest; override via CLI flags). Contact-seam rule: rays crossing into a direct physical-contact neighbor skip hits within contact tolerance and continue to the next surface, so a modeled micro-gap between touching parts doesn't read as a paper-thin wall. **Gray/unresolved area means the heatmap is incomplete, NOT that the model is safe** — open meshes, concave geometry, coarse tessellation, or low sample counts leave unresolved regions. A mesh/raycast approximation, not FEA. Also writes `evidence/thickness/point-cloud.json` with per-sample object identity, local position, normal, thickness, class, color, and represented area.
64
64
 
65
+ **throughThickness** — minimum solid span from each surface point. Instead of casting only along the local normal, it searches for the closest opposite boundary reachable by a segment that leaves the surface into occupied material; nearby exterior air gaps are rejected. This catches diagonal choke points and edge-near weak zones that normal thickness can miss. Uses the same threshold/color options as `thickness` in v1 and writes `evidence/through-thickness/point-cloud.json`.
66
+
65
67
  **sections** — exact 2D contour slices, three explicit modes:
66
68
 
67
69
  - `sections at` — one exact cut through a localized feature (`--plane yz --offset 12.5`).