Verification
Native asymmetric chamfer
One semantic edge set keeps two independent native chamfer distances
What this verifies
A named top segment on an XZ profile selects the two broad-face edges of one extrusion. SolidCraft stores one ChamferFeature with independent primary and secondary distances and preserves it when the saved design is resized.
scpf source
Complete primary source from the site branch; built revision below.
"""Native two-distance chamfer qualification."""
class AsymmetricChamfer:
width = 40.0
depth = 20.0
height = 10.0
primary_distance = 0.18
secondary_distance = 0.65
def build(self):
with Sketch(name="Chamfer profile", plane="XZ") as profile:
Polygon2D(
[
(-self.width / 2, 0),
(self.width / 2, 0),
(self.width / 2, self.height),
(-self.width / 2, self.height),
],
plane="XZ",
world=True,
ids=["bottom", "right", "top", "left"],
)
body = profile.extrude(self.depth, sym=True)
return body.chamfer(
self.primary_distance,
distance2=self.secondary_distance,
flip=True,
edges=Edges.from_profile("top"),
)
AsymmetricChamfer()
Generated command sequence — scpf (10)
parameters.add{ "command": "parameters.add", "params": { "expression": "20", "name": "depth", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "width", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "10", "name": "height", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "0.18", "name": "primary_distance", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "0.65", "name": "secondary_distance", "unit": "mm" } }sketch.create{ "command": "sketch.create", "params": { "name": "Chamfer profile", "plane": "XZ" } }sketch.line{ "command": "sketch.line", "params": { "closed": true, "ids": [ "bottom", "right", "top", "left" ], "points": [ [ "(-(width)) / 2", 0 ], [ "width / 2", 0 ], [ "width / 2", "-(height)" ], [ "(-(width)) / 2", "-(height)" ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.extrude{ "command": "solid.extrude", "params": { "body_name": "AsymmetricChamfer", "direction": "symmetric", "distance": "depth" } }solid.chamfer{ "command": "solid.chamfer", "params": { "body": "AsymmetricChamfer", "distance": "primary_distance", "distance2": "secondary_distance", "edges": [ [ 0.0, -10.0, 10.0 ], [ 0.0, 10.0, 10.0 ] ], "flip": true } }
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.
front
passRegression: pass · expected shape: pass
right
passRegression: pass · expected shape: pass
iso
passRegression: pass · 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 |
|---|---|---|---|
| Bounds / max | 20 × 10 × 10 | 20 × 10 × 10 | pass |
| Bounds / min | -20 × -10 × 0 | -20 × -10 × 0 | pass |
| Volume / mm3 | 7995.32 | 7995.31999481 | pass |
| Watertight | true | true | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| Body envelopes / count | 1 | 1 | pass |
| Body 1 / min [mm] | -20 × -10 × 0 | -20 × -10 × 0 | — |
| Body 1 / max [mm] | 20 × 10 × 10 | 20 × 10 × 10 | — |
| SolidCraft parameters / depth | 20 | 20 | pass |
| SolidCraft parameters / height | 10 | 10 | pass |
| SolidCraft parameters / primary_distance | 0.18 | 0.18 | pass |
| SolidCraft parameters / secondary_distance | 0.65 | 0.65 | pass |
| SolidCraft parameters / width | 40 | 40 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
| SolidCraft timeline | [{"name": "Chamfer profile", "type": "Sketch"}, {"type": "ExtrudeFeature"}, {"type": "ChamferFeature"}] | [{"name": "Chamfer profile", "type": "Sketch"}, {"type": "ExtrudeFeature"}, {"type": "ChamferFeature"}] | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| Body envelopes / count | 1 | 1 | pass |
| Body 1 / min [mm] | -25 × -12 × 0 | -25 × -12 × 0 | — |
| Body 1 / max [mm] | 25 × 12 × 12 | 25 × 12 × 12 | — |
| SolidCraft parameters / depth | 24 | 24 | pass |
| SolidCraft parameters / height | 12 | 12 | pass |
| SolidCraft parameters / primary_distance | 0.3 | 0.3 | pass |
| SolidCraft parameters / secondary_distance | 0.8 | 0.8 | pass |
| SolidCraft parameters / width | 50 | 50 | pass |
| SolidCraft sketch count | 1 | 1 | pass |
| SolidCraft timeline | [{"name": "Chamfer profile", "type": "Sketch"}, {"type": "ExtrudeFeature"}, {"type": "ChamferFeature"}] | [{"name": "Chamfer profile", "type": "Sketch"}, {"type": "ExtrudeFeature"}, {"type": "ChamferFeature"}] | pass |
Model stages
- Create one named rectangular XZ profile
- Extrude it symmetrically along Y
- Apply one two-distance native chamfer to the named top profile edge
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
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verificationnative: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verificationvisual: status=pass, adapter=solidcraft-visual, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
20.0,
10.0,
10.0
],
"actual_min": [
-20.0,
-10.0,
0.0
],
"expected_max": [
20.0,
10.0,
10.0
],
"expected_min": [
-20.0,
-10.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.2
},
"volume": {
"actual_mm3": 7995.319994812016,
"delta_mm3": 5.187983333598822e-06,
"expected_mm3": 7995.32,
"pass": true,
"tolerance_mm3": 0.3
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/asymmetric-chamfer/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "asymmetric-chamfer-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "520ce09ca84c7089fefbe5226351b64967d5cab6617f4591fc0ec8425c02bbc6",
"size": 2799
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"body_envelopes": {
"actual_count": 1,
"expected_count": 1,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "AsymmetricChamfer",
"max": [
20.0,
10.0,
10.0
],
"min": [
-20.0,
-10.0,
0.0
]
},
"expected": {
"label": null,
"max": [
20.0,
10.0,
10.0
],
"min": [
-20.0,
-10.0,
0.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.01,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"selector": "sole",
"volume": {
"actual": 7995.319999999999,
"delta": 9.094947017729282e-13,
"expected": 7995.32,
"kind": "scalar",
"label": "sole body volume",
"pass": true,
"tolerance": 0.02
}
}
],
"parameters": {
"actual": {
"depth": 20.0,
"height": 10.0,
"primary_distance": 0.18,
"secondary_distance": 0.65,
"width": 40.0
},
"expected": {
"depth": 20.0,
"height": 10.0,
"primary_distance": 0.18,
"secondary_distance": 0.65,
"width": 40.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Chamfer profile",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Chamfer profile",
"profiles": 1,
"status": "solved"
},
"label": "Chamfer profile sketch",
"pass": true
}
],
"timeline": {
"actual": [
{
"name": "Chamfer profile",
"type": "Sketch"
},
{
"type": "ExtrudeFeature"
},
{
"type": "ChamferFeature"
}
],
"expected": [
{
"name": "Chamfer profile",
"type": "Sketch"
},
{
"type": "ExtrudeFeature"
},
{
"type": "ChamferFeature"
}
],
"label": "SolidCraft timeline",
"pass": true
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/resized_asymmetric_chamfer/model.sc",
"sha256": "1821c91fc1a7a1b5539adee22748cc9bb67d8a461f5ea075619ec67809d4c0e4",
"size": 8768
},
{
"kind": "file",
"path": "saved_designs/resized_asymmetric_chamfer/measurements.json",
"sha256": "d24f10823a5df90f724bdcca5da5aba1800d9d3dac590d585b50570fdf976789",
"size": 2807
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"body_envelopes": {
"actual_count": 1,
"expected_count": 1,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "AsymmetricChamfer",
"max": [
25.0,
12.0,
12.0
],
"min": [
-25.0,
-12.0,
0.0
]
},
"expected": {
"label": null,
"max": [
25.0,
12.0,
12.0
],
"min": [
-25.0,
-12.0,
0.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.01,
"unmatched_actual": [],
"unmatched_expected": []
},
"changes": [
{
"comparison": {
"actual": {
"absolute_delta": 6392.679999999999,
"baseline": 7995.319999999999,
"mutated": 14387.999999999998
},
"expected": {
"absolute_delta_gt": 1000.0
},
"label": "SolidCraft saved design change asymmetric_chamfer_volume",
"pass": true
},
"id": "asymmetric_chamfer_volume",
"path": [
"bodies",
0,
"volume_mm3"
]
}
],
"named_bodies": [
{
"selector": "sole",
"volume": {
"actual": 14387.999999999998,
"delta": 1.8189894035458565e-12,
"expected": 14388.0,
"kind": "scalar",
"label": "sole body volume",
"pass": true,
"tolerance": 0.03
}
}
],
"parameters": {
"actual": {
"depth": 24.0,
"height": 12.0,
"primary_distance": 0.3,
"secondary_distance": 0.8,
"width": 50.0
},
"expected": {
"depth": 24.0,
"height": 12.0,
"primary_distance": 0.3,
"secondary_distance": 0.8,
"width": 50.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Chamfer profile",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Chamfer profile",
"profiles": 1,
"status": "solved"
},
"label": "Chamfer profile sketch",
"pass": true
}
],
"timeline": {
"actual": [
{
"name": "Chamfer profile",
"type": "Sketch"
},
{
"type": "ExtrudeFeature"
},
{
"type": "ChamferFeature"
}
],
"expected": [
{
"name": "Chamfer profile",
"type": "Sketch"
},
{
"type": "ExtrudeFeature"
},
{
"type": "ChamferFeature"
}
],
"label": "SolidCraft timeline",
"pass": true
}
},
"id": "saved_design_resized_asymmetric_chamfer",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/chamfer-definition/results.json",
"sha256": "a8d50f5a4b217c530ef29815aa546594250720d4ac032c8755de68e0fc7b36ef",
"size": 826
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": "primary_distance",
"expected": "primary_distance",
"label": "SolidCraft inspection check primary-distance",
"pass": true
},
"id": "primary-distance",
"path": [
0,
"definition",
"distance"
]
},
{
"comparison": {
"actual": "secondary_distance",
"expected": "secondary_distance",
"label": "SolidCraft inspection check secondary-distance",
"pass": true
},
"id": "secondary-distance",
"path": [
0,
"definition",
"distance2"
]
},
{
"comparison": {
"actual": true,
"expected": true,
"label": "SolidCraft inspection check flipped-face-order",
"pass": true
},
"id": "flipped-face-order",
"path": [
0,
"definition",
"flip"
]
}
]
},
"id": "inspection_chamfer-definition",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/asymmetric-chamfer/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "asymmetric-chamfer"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "838fae9449d4d29d611f62412bea8553d837a3ed896b3db3efbe74615e3de20e",
"size": 127
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "b29e46a79d0f503669deceaed4a22719dde0bbd73db215cd8c8ba74232ca894a",
"size": 9980
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "515d7fa11467bd5cefb2cbdd2bc49fb8f1d7e22102ad92a4043cb7d1c09e7d58",
"size": 1986
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "7c886740374637ead8751e5e1a4f882070c75d404b1ef38d56defa9472a775cf",
"size": 2993
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "c617269df490f681ce2ff4c7f2f9afea6e0caec17bc659943f1db65cbf755442",
"size": 498
}
],
"error": null,
"evidence": {
"actual_image": "visual/front/actual.png",
"baseline": "baselines/front.json",
"baseline_status": "pass",
"camera": "visual/front/camera.json",
"diff_image": "visual/front/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/front/goal.png",
"overlay_image": "visual/front/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.0,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "b898f9c370239f04f6d076289df69ccb1f328c8f3bb60cd364cb85947ab6f709",
"size": 143
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "eb7f1f2d7c7bc8ded6ee16dfbb444519eba31334b15d1ea43512bd0a712b51fd",
"size": 9690
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "1f89f06ab0c108ff3cda98443a916da2cfeeb8b661d8bba38a14e57e94a19051",
"size": 1983
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "b6453ba388d3f47f60424906ac8363eadc9790ae7c9382d105fa0c06066e5ed1",
"size": 2732
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "67dbf2587a69cbb86851d2718528499aaed7bf518e19a442920428e1ff3e5d9a",
"size": 419
}
],
"error": null,
"evidence": {
"actual_image": "visual/right/actual.png",
"baseline": "baselines/right.json",
"baseline_status": "pass",
"camera": "visual/right/camera.json",
"diff_image": "visual/right/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/right/goal.png",
"overlay_image": "visual/right/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.0,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "4b0d48ccf6a4a2ff1508b5edc691a2e54a29a4cb3e65f1336b20a54aadde8edb",
"size": 158
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "b863504649abe71e94d095338a998109db0c074294aa0c1116d8e67712bccf98",
"size": 40630
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "617c774fc609d78a07a51886b56fb87789ab454cae84753c62e125531539cea6",
"size": 3959
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "7783018c08d13b46a2cdf9baa25a7f38e7aa336074c1c523538d70226e3f37ff",
"size": 24941
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "03c11d8ff67fb2ad622ec0115127866a6e6784163ed7861c90cab422b6b5bc1e",
"size": 2588
}
],
"error": null,
"evidence": {
"actual_image": "visual/iso/actual.png",
"baseline": "baselines/iso.json",
"baseline_status": "pass",
"camera": "visual/iso/camera.json",
"diff_image": "visual/iso/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/iso/goal.png",
"overlay_image": "visual/iso/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.0,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/asymmetric-chamfer/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"runtime": "ghcr.io/brainboxemb/cad-solidcraft:v0.3.6",
"solidcraft_version": "0.49.0",
"source_commit": "c249135fa449f2a35cc796a7fdf86a67eea225a5",
"workflow_run": 45837810986
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "asymmetric-chamfer-scpf-visual"
}











