Verification
Native sheet hem
Existing sheet material folds back with inherited rule semantics
What this verifies
An 80 × 40 × 2 mm sheet receives a native hem with editable length and gap while thickness, K-factor and default bend radius remain rule-owned.
scpf source
Complete primary source from the site branch; built revision below.
"""Native regression fixture for SolidCraft sheet-hem history."""
class SheetHem:
width = 80.0
depth = 40.0
thickness = 2.0
bend_radius = 2.0
k_factor = 0.5
hem_length = 12.0
hem_gap = 4.0
def build(self):
with Sketch(name="Blank", plane="XY") as blank:
Rectangle2D(self.width, self.depth)
sheet = blank.sheet_metal(
thickness=self.thickness,
bend_radius=self.bend_radius,
k_factor=self.k_factor,
rule_name="Hem Rule",
)
return sheet.hem(
edges=[(40, 0, 2)],
length=self.hem_length,
gap=self.hem_gap,
)
SheetHem()
Engineering explanation
Native sheet hem
Group: sheet-metal
Saved-design required: true
Documentation provenance: Forge #785 promotes the released #773 hem fixture to public Verification.
Goal
Prove that an existing sheet edge can fold back as one native hem while inheriting the active material rule.
Forge API
Sketch.sheet_metal(...) creates the blank and Shape.hem(edges=..., length=..., gap=...) adds the native feature.
Forge model
An 80 × 40 × 2 mm sheet receives a 12 mm hem with a 4 mm gap on its selected right edge.
How Forge builds it in SolidCraft
Forge reuses the existing sheet rule and emits one native hem feature from a fixed edge pick. Length and gap remain feature dimensions.
SolidCraft result
One native sheet body contains the hem and keeps a recoverable developed flat pattern.
Saved-design test
Mutate hem length from 12 to 16 mm and gap from 4 to 5 mm, then verify the rebuilt feature and flat pattern.
Geometry evidence
Geometry-rationale provenance: Forge #785 / #773 public capability promotion. Bounds sufficient:
false
Bounds alone do not prove native hem identity, inherited material rule or the developed result.
Reference notes
- Native SolidCraft history — Native hem and sheet-rule evidence is authoritative; external shape-only references are optional.
Generated command sequence — scpf (13)
parameters.add{ "command": "parameters.add", "params": { "expression": "80", "name": "width", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "depth", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "2", "name": "thickness", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "2", "name": "bend_radius", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "0.5", "name": "k_factor", "unit": "" } }parameters.add{ "command": "parameters.add", "params": { "expression": "12", "name": "hem_length", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "4", "name": "hem_gap", "unit": "mm" } }sheet.manage_rules{ "command": "sheet.manage_rules", "params": { "active": true, "bend_radius": "bend_radius", "k_factor": "k_factor", "name": "Hem Rule", "thickness": "thickness" } }sketch.create{ "command": "sketch.create", "params": { "name": "Blank", "plane": "XY" } }sketch.rectangle.two_point{ "command": "sketch.rectangle.two_point", "params": { "p0": [ "-(width / 2)", "-(depth / 2)" ], "p1": [ "width / 2", "depth / 2" ] } }sketch.finish{ "command": "sketch.finish", "params": {} }sheet.flange{ "command": "sheet.flange", "params": { "body_name": "SheetHem", "rule": "Hem Rule", "sketch": "Blank", "type": "base" } }sheet.hem{ "command": "sheet.hem", "params": { "body": "SheetHem", "edges": [ [ 40.0, 0.0, 2.0 ] ], "gap": "hem_gap", "length": "hem_length" } }
Reference code
No independent implementation is declared.
Image overview
Only images present in the published build are displayed. Presentation previews are not visual verification results.
Verification checks
scpf — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / bend_radius | 2 | 2 | pass |
| SolidCraft parameters / depth | 40 | 40 | pass |
| SolidCraft parameters / hem_gap | 4 | 4 | pass |
| SolidCraft parameters / hem_length | 12 | 12 | pass |
| SolidCraft parameters / k_factor | 0.5 | 0.5 | pass |
| SolidCraft parameters / thickness | 2 | 2 | pass |
| SolidCraft parameters / width | 80 | 80 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / hem_gap | 5 | 5 | pass |
| SolidCraft parameters / hem_length | 16 | 16 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
Model stages
- Create the flat sheet with its shared material rule
- Add a native hem to the selected sheet edge
- Mutate hem length and gap and verify the developed flat pattern
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
native: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "456645c6dd369b49e78d856e99462c3152916e3d4216b6e1caef56b2b75f52a7",
"size": 3165
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"named_bodies": [
{
"closed": {
"actual": true,
"expected": true,
"label": "sole body closed",
"pass": true
},
"selector": "sole",
"sheet_metal": {
"actual": true,
"expected": true,
"label": "sole body sheet_metal",
"pass": true
}
}
],
"parameters": {
"actual": {
"bend_radius": 2.0,
"depth": 40.0,
"hem_gap": 4.0,
"hem_length": 12.0,
"k_factor": 0.5,
"thickness": 2.0,
"width": 80.0
},
"expected": {
"bend_radius": 2.0,
"depth": 40.0,
"hem_gap": 4.0,
"hem_length": 12.0,
"k_factor": 0.5,
"thickness": 2.0,
"width": 80.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"label": "Blank sketch",
"pass": true
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/resize_hem/model.sc",
"sha256": "7c441c72a6334d9a3ecfc53989c7a5e42fa827a747b5ef272e32933a3bdb427e",
"size": 10555
},
{
"kind": "file",
"path": "saved_designs/resize_hem/measurements.json",
"sha256": "ddd8d070f8da0174c38ef069e3d466e0fecf2dfea7682848aca77cb6f8e7f4e4",
"size": 3162
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"named_bodies": [
{
"closed": {
"actual": true,
"expected": true,
"label": "sole body closed",
"pass": true
},
"selector": "sole",
"sheet_metal": {
"actual": true,
"expected": true,
"label": "sole body sheet_metal",
"pass": true
}
}
],
"parameters": {
"actual": {
"hem_gap": 5.0,
"hem_length": 16.0
},
"expected": {
"hem_gap": 5.0,
"hem_length": 16.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"label": "Blank sketch",
"pass": true
}
]
},
"id": "saved_design_resize_hem",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/flat_pattern/results.json",
"sha256": "5065e91f2a0dc12d1a4e1a0b181cb7011a72f2b693d63c005d01b2e8cf5af4b7",
"size": 1114
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check result_count",
"pass": true
},
"id": "result_count",
"path": []
},
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check bend_count",
"pass": true
},
"id": "bend_count",
"path": [
0,
"bends"
]
},
{
"comparison": {
"actual": "Hem Rule",
"expected": "Hem Rule",
"label": "SolidCraft inspection check sheet_rule",
"pass": true
},
"id": "sheet_rule",
"path": [
0,
"rule"
]
},
{
"comparison": {
"actual": 2.0,
"delta": 0.0,
"expected": 2.0,
"kind": "scalar",
"label": "SolidCraft inspection check sheet_thickness",
"pass": true,
"tolerance": 0.001
},
"id": "sheet_thickness",
"path": [
0,
"thickness"
]
},
{
"comparison": {
"actual": 0.5,
"delta": 0.0,
"expected": 0.5,
"kind": "scalar",
"label": "SolidCraft inspection check sheet_k_factor",
"pass": true,
"tolerance": 0.001
},
"id": "sheet_k_factor",
"path": [
0,
"k_factor"
]
}
]
},
"id": "inspection_flat_pattern",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/sheet-hem/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-hem"
}