Verification
Native Box face-boundary selection
One named face resolves to its native boundary edges for chamfer
What this verifies
A rectangular Box chamfers the complete TOP-face perimeter through Edges.from_faces(Faces.TOP). Forge queries SolidCraft topology at replay time and passes native edge references to the chamfer feature.
scpf source
Complete primary source from the site branch; built revision below.
"""Native one-face boundary selection qualification for #148."""
class TopologyFaceBoundaryBox:
def build(self):
body = Box(60, 40, 12, anchor=Anchor.BOTTOM)
return body.chamfer(
2,
edges=Edges.from_faces(Faces.TOP),
)
TopologyFaceBoundaryBox()
Generated command sequence — scpf (4)
solid.box{ "command": "solid.box", "params": { "body_name": "TopologyFaceBoundaryBox", "corner": [ -30.0, -20.0, 0 ], "height": 12, "length": 60, "width": 40 } }model.faces{ "bind": { "$topology_face_1": { "field": "faces", "max": "area", "where": { "plane_normal": [ 0, 0, 1 ] } } }, "command": "model.faces", "params": { "body": "TopologyFaceBoundaryBox" } }model.edges{ "bind": { "$topology_edges_1": { "body": "TopologyFaceBoundaryBox", "boundary_of": "$topology_face_1", "field": "edges" } }, "command": "model.edges", "params": { "body": "TopologyFaceBoundaryBox" } }solid.chamfer{ "command": "solid.chamfer", "params": { "body": "TopologyFaceBoundaryBox", "distance": 2, "edges": "$topology_edges_1" } }
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 |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft timeline | [{"type": "BoxFeature"}, {"type": "ChamferFeature"}] | [{"type": "BoxFeature"}, {"type": "ChamferFeature"}] | pass |
Model stages
- Create the native Box
- Resolve the largest planar TOP face through model.faces
- Resolve its boundary through model.edges
- Chamfer the returned native edge references
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 · verificationvisual: status=pass, adapter=solidcraft-visual, 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": "6fd4882466a63abb3230ad36d54f149a0fabcb5374ab8de6bc85fb4a4336e445",
"size": 1563
}
],
"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"
}
],
"timeline": {
"actual": [
{
"type": "BoxFeature"
},
{
"type": "ChamferFeature"
}
],
"expected": [
{
"type": "BoxFeature"
},
{
"type": "ChamferFeature"
}
],
"label": "SolidCraft timeline",
"pass": true
}
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/topology-face-boundary-box/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "topology-face-boundary-box"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "8bc25e02a205c538ed2799e7d5b18891820d56c1446169aa5dac7a2ace82a4c2",
"size": 164
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "ad25a6859ec26c1432bd98fb1776e24c3444d8acd2ca8095e2870620c44607a8",
"size": 10602
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "3198f78fa3eed7fe696e050eb918f3f62ed9c536d6255fc55159cd7ca12f7a45",
"size": 1986
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "8b15f23dc6094f3c75724336c0f2d2426dabe2dc298baa6a888d8c066c7a65cd",
"size": 3382
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "489554f6736d99bf617aff70a575a5c1ebe92b9c9cbdd12262a6d8689923121c",
"size": 522
}
],
"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": "eb773634b7ef4c34203e3e2ad8bffd8b7f5a8a9d4d132b7c7005f7a6df357a28",
"size": 180
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "3f5945863c22e275435fc1725f73ea9b78d1140b839a04e9f8a606713c788d8e",
"size": 10205
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "93d5a684bca09013a8a34561b9e2d397ee5e98f4188925e36c1ad7be2851c21f",
"size": 1986
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "2a435ce971c5bfadb4889f6f7d9d67fcbe834a52693fd14cbcfb0ae8b067c2b2",
"size": 3162
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "48261049c3e6edbaa4eafa5b4b5e4bb5bf8134063396419d4836a10313abfdd6",
"size": 524
}
],
"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": "81d3f41cd890b9d2888fbd4e1e5fe566fb75a111c202c4753302e90933db0191",
"size": 195
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "79c78ff57b875a24530821e5d98a3667e9cff0ba3a9e658b53db799ce1d54063",
"size": 38983
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "c8c760c646a5d383393848aca965f27ac1575be48b166e0f5810ea8460d1910c",
"size": 4035
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "859ef4cb91cc4099b2e81e5586514fe20d634e77cca3535ae6d4cb66c0e30e3d",
"size": 25548
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "5583a704f1f5091011f386195cf4d41adb9a7a2bcfcaedb9feb28c89498a1167",
"size": 3024
}
],
"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/topology-face-boundary-box/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"runtime": "ghcr.io/brainboxemb/cad-solidcraft:v0.3.6",
"solidcraft_version": "0.49.0",
"source_commit": "90b7eba19227032766dc1309ae8d851c4cb09553",
"workflow_run": 45873531238
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "topology-face-boundary-box-scpf-visual"
}











