Verification
Native sheet edge flange
Existing sheet edges grow editable flange history
What this verifies
An 80 × 40 × 2 mm sheet receives a native edge flange whose height and bend angle remain editable while the shared sheet rule owns the material.
scpf source
Complete primary source from the site branch; built revision below.
"""Native regression fixture for SolidCraft edge-flange history."""
class SheetEdgeFlange:
width = 80.0
depth = 40.0
thickness = 2.0
bend_radius = 2.0
k_factor = 0.5
flange_height = 20.0
flange_angle = 90.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="Edge Flange Rule",
)
return sheet.flange(
edges=[(40, 0, 2)],
height=self.flange_height,
angle=self.flange_angle,
)
SheetEdgeFlange()
Engineering explanation
Native sheet edge flange
Group: sheet-metal
Saved-design required: true
Documentation provenance: Forge #785 promotes the released #682 edge-flange fixture to public Verification.
Goal
Prove that an existing sheet edge can grow one native editable flange while material values remain owned by the active sheet rule.
Forge API
Sketch.sheet_metal(...) creates the blank; Shape.flange(edges=..., height=..., angle=...) adds the existing-edge feature.
Forge model
An 80 × 40 × 2 mm sheet receives a flange on its right edge. Height starts at 20 mm and angle at 90 degrees.
How Forge builds it in SolidCraft
Forge creates one sheet rule and flat sheet body, resolves the fixed edge pick and emits one native edge-flange feature. Height and angle remain feature dimensions.
SolidCraft result
One native sheet body has one inherited-rule edge flange and a recoverable flat pattern.
Saved-design test
Mutate flange height from 20 to 25 mm and bend angle from 90 to 75 degrees, then verify rebuilt native feature and flat-pattern evidence.
Geometry evidence
Geometry-rationale provenance: Forge #785 / #682 public capability promotion. Bounds sufficient:
false
The formed bounds do not prove inherited rule ownership or native flange/flat-pattern history; inspection of sheet and bend records is required.
Reference notes
- Native SolidCraft history — The verification target is native sheet-rule and flange history, so independent solid-only references are optional rather than fabricated.
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": "20", "name": "flange_height", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "90", "name": "flange_angle", "unit": "deg" } }sheet.manage_rules{ "command": "sheet.manage_rules", "params": { "active": true, "bend_radius": "bend_radius", "k_factor": "k_factor", "name": "Edge Flange 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": "SheetEdgeFlange", "rule": "Edge Flange Rule", "sketch": "Blank", "type": "base" } }sheet.flange{ "command": "sheet.flange", "params": { "angle": "flange_angle", "body": "SheetEdgeFlange", "edges": [ [ 40.0, 0.0, 2.0 ] ], "height": "flange_height", "type": "edge" } }
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 / flange_angle | 1.57079632679 | 1.57079632679 | pass |
| SolidCraft parameters / flange_height | 20 | 20 | 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 / flange_angle | 1.308996939 | 1.308996939 | pass |
| SolidCraft parameters / flange_height | 25 | 25 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
Model stages
- Create the flat sheet with one explicit sheet rule
- Select the existing sheet edge and add the native flange
- Mutate flange height and angle and verify the 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": "8452145601f24b4fa090278bbf66f168297a4df29ed20fa643eedc00ad4412c3",
"size": 3228
}
],
"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,
"flange_angle": 1.5707963267948966,
"flange_height": 20.0,
"k_factor": 0.5,
"thickness": 2.0,
"width": 80.0
},
"expected": {
"bend_radius": 2.0,
"depth": 40.0,
"flange_angle": 1.5707963267948966,
"flange_height": 20.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_edge_flange/model.sc",
"sha256": "c5da90d217656860ab1e7dc7e945c96d75b2dc950834ba31404543b736be9cf3",
"size": 11350
},
{
"kind": "file",
"path": "saved_designs/resize_edge_flange/measurements.json",
"sha256": "05d84ceeeef3dd0f492ba0ec53c8a14d3aef6896e7ccca0516fec71d9d244b3b",
"size": 3244
}
],
"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": {
"flange_angle": 1.3089969389957472,
"flange_height": 25.0
},
"expected": {
"flange_angle": 1.3089969389957472,
"flange_height": 25.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_edge_flange",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/flat_pattern/results.json",
"sha256": "c7504551c0264c6d2d746bf548e6b007948d169f8a78bb67d30475a5a9d6df25",
"size": 1115
}
],
"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": 90.0,
"delta": 0.0,
"expected": 90.0,
"kind": "scalar",
"label": "SolidCraft inspection check bend_angle",
"pass": true,
"tolerance": 0.001
},
"id": "bend_angle",
"path": [
0,
"bends",
0,
"angle_deg"
]
},
{
"comparison": {
"actual": 2.0,
"delta": 0.0,
"expected": 2.0,
"kind": "scalar",
"label": "SolidCraft inspection check bend_radius",
"pass": true,
"tolerance": 0.001
},
"id": "bend_radius",
"path": [
0,
"bends",
0,
"radius"
]
},
{
"comparison": {
"actual": "Edge Flange Rule",
"expected": "Edge Flange 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-edge-flange/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-edge-flange"
}