Verification
Native whole-sheet perforation
Manufacturing perforations stay native sheet and flat-pattern history
What this verifies
A 60 × 40 × 2 mm native sheet carries a parameterized manufacturing perforation field. The display B-rep stays uncut; flat-pattern/DXF output and measured volume carry the native perforation semantics.
scpf source
Complete primary source from the site branch; built revision below.
"""Public Verification model for SolidCraft whole-sheet perforations."""
class SheetPerforate:
width = 60.0
depth = 40.0
thickness = 2.0
bend_radius = 2.0
k_factor = 0.5
perforation_diameter = 5.0
perforation_pitch = 10.0
perforation_margin = 5.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="Perforation Rule",
)
return sheet.perforate(
diameter=self.perforation_diameter,
pitch=self.perforation_pitch,
margin=self.perforation_margin,
pattern="square",
)
SheetPerforate()
Engineering explanation
This verification covers a native manufacturing perforation field, not ordinary B-rep hole cuts.
SolidCraft’s sheet.perforate contract intentionally keeps the display B-rep
as one sheet while carrying perforations in flat-pattern, DXF and measured-volume
semantics. The ordinary 3D preview may therefore look like a solid plate and is
not the visual proof for this capability.
The native checks prove the saved design contains one PerforateFeature and
that sheet.flat_pattern reports 15 square-pattern perforations at Ø5 mm,
10 mm pitch and 5 mm margin.
The manufacturing-flat-pattern visual check exports the saved .sc through
native sheet.export_dxf. Actual is rendered from DXF PERFORATION circles;
Goal is the approved 5 × 3 field. The first Ø5 centre is at (-22.5, -12.5):
that leaves the declared 5 mm material clearance from the sheet edge to the
hole contour, after which centres repeat on the 10 mm square pitch. The check
fails if native manufacturing output loses holes, moves them, changes their
diameter or becomes a solid blank.
Forge deliberately does not replace this feature with repeated solid holes.
Generated command sequence — scpf (14)
parameters.add{ "command": "parameters.add", "params": { "expression": "60", "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": "5", "name": "perforation_diameter", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "10", "name": "perforation_pitch", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "5", "name": "perforation_margin", "unit": "mm" } }sheet.manage_rules{ "command": "sheet.manage_rules", "params": { "active": true, "bend_radius": "bend_radius", "k_factor": "k_factor", "name": "Perforation 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": "SheetPerforate", "rule": "Perforation Rule", "sketch": "Blank", "type": "base" } }sheet.perforate{ "command": "sheet.perforate", "params": { "body": "SheetPerforate", "diameter": "perforation_diameter", "margin": "perforation_margin", "pattern": "square", "pitch": "perforation_pitch" } }
Reference code
No independent implementation is declared.
Current visual verification — scpf
Each model-owned view is evaluated independently. Actual is the current native result; Goal is the declared expected profile; Overlay combines both; Diff compares the approved regression baseline.
manufacturing-flat-pattern
passRegression: not-applicable · expected shape: pass
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 |
|---|---|---|---|
| Geometry errors / count | 15 | 15 | — |
| Native DXF perforation field / count | 15 | 15 | pass |
| Native DXF perforation field / diameter_mm | 5 | 5 | 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 / k_factor | 0.5 | 0.5 | pass |
| SolidCraft parameters / perforation_diameter | 5 | 5 | pass |
| SolidCraft parameters / perforation_margin | 5 | 5 | pass |
| SolidCraft parameters / perforation_pitch | 10 | 10 | pass |
| SolidCraft parameters / thickness | 2 | 2 | pass |
| SolidCraft parameters / width | 60 | 60 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / perforation_diameter | 6 | 6 | pass |
| SolidCraft parameters / perforation_margin | 6 | 6 | pass |
| SolidCraft parameters / perforation_pitch | 12 | 12 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
Model stages
- Create the flat sheet with one shared material rule
- Apply one native whole-sheet perforation field
- Mutate diameter, pitch and margin and inspect the rebuilt 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
manufacturing-visual: status=pass, adapter=solidcraft-sheet-flat-pattern-visual, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verificationnative: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
manufacturing-visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "actual.dxf",
"sha256": "105ad15fecc0c9e6e09c0f97f699f433b07d3ec60c667cc709dd98df85180b21",
"size": 7585
},
{
"kind": "file",
"path": "actual.svg",
"sha256": "ddaa0aaab6ca9ac0d1601e722b4481850d9670ef4c2ad5ed0fdda0c5f87ed1d4",
"size": 1195
},
{
"kind": "file",
"path": "goal.svg",
"sha256": "ddaa0aaab6ca9ac0d1601e722b4481850d9670ef4c2ad5ed0fdda0c5f87ed1d4",
"size": 1195
},
{
"kind": "file",
"path": "overlay.svg",
"sha256": "dcc3d87a2f65a57c386cb9eaa5e3acc769f0125273b692f37fb744ce2e92231e",
"size": 2033
}
],
"error": null,
"evidence": {
"actual_image": "actual.svg",
"baseline_status": "not-applicable",
"context": "Native sheet.export_dxf manufacturing output; the ordinary 3D B-rep preview intentionally remains unperforated.",
"expected_shape_status": "pass",
"geometry_errors": {
"actual_count": 15,
"expected_count": 15,
"maximum_center_error_mm": 0.0,
"maximum_diameter_error_mm": 0.0,
"tolerance_mm": 0.001
},
"goal_image": "goal.svg",
"overlay_image": "overlay.svg",
"perforation_field": {
"actual": {
"count": 15,
"diameter_mm": 5.0
},
"expected": {
"count": 15,
"diameter_mm": 5.0
},
"label": "Native DXF perforation field",
"pass": true
},
"view": "manufacturing-flat-pattern"
},
"id": "manufacturing-flat-pattern",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/sheet-perforate/scpf/model.sc",
"metadata": {
"approval": "approved",
"kind": "solidcraft-sheet-flat-pattern-visual",
"source": "sheet.export_dxf"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-perforate-scpf-manufacturing-visual"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "793b7209975cfd087755d00942f138a0d25c640d30e555f8274b2466896d0f9f",
"size": 3301
}
],
"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,
"k_factor": 0.5,
"perforation_diameter": 5.0,
"perforation_margin": 5.0,
"perforation_pitch": 10.0,
"thickness": 2.0,
"width": 60.0
},
"expected": {
"bend_radius": 2.0,
"depth": 40.0,
"k_factor": 0.5,
"perforation_diameter": 5.0,
"perforation_margin": 5.0,
"perforation_pitch": 10.0,
"thickness": 2.0,
"width": 60.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_perforation/model.sc",
"sha256": "78e383e3596f93ab8c08a1f233d48ef6d164eb4214651cb91249458d138c4921",
"size": 5455
},
{
"kind": "file",
"path": "saved_designs/resize_perforation/measurements.json",
"sha256": "cf6cfcebb1dbf2a983c3e38297424c8f0e648bc6db96c4f6de365d12f50dda8e",
"size": 3299
}
],
"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": {
"perforation_diameter": 6.0,
"perforation_margin": 6.0,
"perforation_pitch": 12.0
},
"expected": {
"perforation_diameter": 6.0,
"perforation_margin": 6.0,
"perforation_pitch": 12.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_perforation",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/flat_pattern/results.json",
"sha256": "d04a558a81be9afb1832b11dddb614519b4692da48c30b69ce19448aa84a014e",
"size": 846
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check result_count",
"pass": true
},
"id": "result_count",
"path": []
},
{
"comparison": {
"actual": 15,
"expected": 15,
"label": "SolidCraft inspection check perforation_count",
"pass": true
},
"id": "perforation_count",
"path": [
0,
"perforations",
0,
"count"
]
},
{
"comparison": {
"actual": 5.0,
"delta": 0.0,
"expected": 5.0,
"kind": "scalar",
"label": "SolidCraft inspection check perforation_diameter",
"pass": true,
"tolerance": 0.001
},
"id": "perforation_diameter",
"path": [
0,
"perforations",
0,
"diameter"
]
},
{
"comparison": {
"actual": 10.0,
"delta": 0.0,
"expected": 10.0,
"kind": "scalar",
"label": "SolidCraft inspection check perforation_pitch",
"pass": true,
"tolerance": 0.001
},
"id": "perforation_pitch",
"path": [
0,
"perforations",
0,
"pitch"
]
},
{
"comparison": {
"actual": 5.0,
"delta": 0.0,
"expected": 5.0,
"kind": "scalar",
"label": "SolidCraft inspection check perforation_margin",
"pass": true,
"tolerance": 0.001
},
"id": "perforation_margin",
"path": [
0,
"perforations",
0,
"margin"
]
},
{
"comparison": {
"actual": "square",
"expected": "square",
"label": "SolidCraft inspection check perforation_pattern",
"pass": true
},
"id": "perforation_pattern",
"path": [
0,
"perforations",
0,
"pattern"
]
},
{
"comparison": {
"actual": 294.5243112740431,
"delta": 0.0,
"expected": 294.5243112740431,
"kind": "scalar",
"label": "SolidCraft inspection check perforation_open_area",
"pass": true,
"tolerance": 0.001
},
"id": "perforation_open_area",
"path": [
0,
"perforations",
0,
"open_area_mm2"
]
},
{
"comparison": {
"actual": "Perforation Rule",
"expected": "Perforation 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-perforate/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-perforate"
}