Verification
Topology-backed corner anchor
A standard corner reference follows parent width and height
What this verifies
A Marker uses matching parent and child corner anchors so the native relationship follows two changing parent dimensions.
scpf source
Complete primary source from the site branch; built revision below.
class Base:
width = 40.0
height = 20.0
def build(self):
return Box(self.width, 30, self.height, anchor=Anchor.BOTTOM)
class Marker:
def build(self):
return Box(10, 10, 10, anchor=Anchor.BOTTOM)
class CornerAnchor:
base_width = 40.0
base_height = 20.0
def build(self):
base = Base(
width=self.base_width,
height=self.base_height,
)
marker = Marker().attach(
base,
parent=Anchor.FRONT_TOP_RIGHT,
child=Anchor.BACK_TOP_RIGHT,
)
return base + marker
CornerAnchor()
Engineering explanation
Topology-backed corner anchor
Documentation provenance: the engineering text below is copied verbatim from the last canonical
qualification/cases.pysource before its removal, commitbe40b09e7454a90e87d83768a9e7453c52ba5d76. Machine verification lives inverification/solidcraft.py.
Legacy group: anchors
Saved-design required: true
Goal
Verify a corner reference that follows both parent width and height changes.
Forge API
Anchor.FRONT_TOP_RIGHT paired with child Anchor.BACK_TOP_RIGHT
Forge model
A standard corner Anchor is resolved to an edge/on/corner native topology reference rather than a free point.
How Forge builds it in SolidCraft
joint.create receives SolidCraft edge/on/corner picks so the saved design can re-find the corner after geometry changes.
SolidCraft result
The marker sits on the front-top-right corner of the base.
Saved-design test
Change the base from 40x20 to 80x40 mm; the marker must follow both the new right side and new top.
Geometry evidence
Geometry-rationale provenance: copied verbatim from
qualification/geometry_contracts.pyat commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Bounds sufficient: true
The base and marker positions show the intended corner placement. The saved SolidCraft model is then changed to confirm that the marker keeps following that corner.
Reference notes
- BOSL2 — BOSL2 supports side/edge/corner anchors; its anchor also carries orientation, which is a useful design reference for Forge.
Generated command sequence — scpf (11)
parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "base_width", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "20", "name": "base_height", "unit": "mm" } }component.create{ "bind": { "$base": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Base" } }solid.box{ "command": "solid.box", "params": { "body_name": "Base", "corner": [ "-base_width / 2", -15.0, 0 ], "height": "base_height", "length": "base_width", "width": 30 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }component.create{ "bind": { "$marker": "occurrence" }, "command": "component.create", "params": { "grounded": false, "name": "Marker" } }solid.box{ "command": "solid.box", "params": { "body_name": "Marker", "corner": [ -5.0, -5.0, 0 ], "height": 10, "length": 10, "width": 10 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$marker", "translate": [ "((-(base_width / 2)) + (base_width)) - 5 mm", -20.0, "base_height - 10 mm" ] } }joint.create{ "command": "joint.create", "params": { "a": { "corner": [ 20.0, -15.0, 20.0 ], "edge": [ 20.0, -15.0, 10.0 ], "occurrence": "$base", "on": [ 0.0, -15.0, 10.0 ] }, "b": { "occurrence": "$marker", "point": [ 20.0, -15.0, 20.0 ], "x": [ -1.0, 0.0, 0.0 ], "z": [ 0.0, 1.0, 0.0 ] }, "name": "Attach Marker to Base", "type": "rigid" } }browser.visibility{ "command": "browser.visibility", "params": { "folder": "joints", "visible": false } }
Reference code
cadquery source · pass
"""CadQuery reference for a marker touching the front/top/right corner."""
import cadquery as cq
base = cq.Solid.makeBox(40, 30, 20, cq.Vector(-20, -15, 0))
marker = cq.Solid.makeBox(10, 10, 10, cq.Vector(-5, -5, -5))
model = cq.Assembly()
model.add(base, name="base")
model.add(marker, name="marker", loc=cq.Location((15, -20, 15)))
build123d source · pass
"""build123d reference: marker at the base's front/top/right corner."""
from build123d import Align, Box, BuildPart, Locations
bottom = (Align.CENTER, Align.CENTER, Align.MIN)
with BuildPart() as model:
Box(40, 30, 20, align=bottom)
with Locations((15, -20, 15)):
Box(10, 10, 10)
pythonscad source · pass
"""PythonSCAD geometry reference for the front/top/right corner marker."""
from pythonscad import *
base = cube([40, 30, 20], center=True).up(10)
marker = cube([10, 10, 10], center=True).translate([15, -20, 15])
model = base | marker
pybosl2 source · pass
"""pyBOSL2 geometry reference for a marker touching a box corner.
Forge additionally qualifies the native corner relationship after parent
parameter changes; this file is the readable geometry comparison.
"""
from pybosl2 import cuboid
base = cuboid([40, 30, 20]).up(10)
marker = cuboid([10, 10, 10]).translate([15, -20, 15])
model = base | marker
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 × 15 × 20 | 20 × 15 × 20 | pass |
| Bounds / min | -20 × -25 × 0 | -20 × -25 × 0 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -20 × -15 × 0 | -20 × -15 × 0 | — |
| Body 1 / max [mm] | 20 × 15 × 20 | 20 × 15 × 20 | — |
| Body 2 / min [mm] | 10 × -25 × 10 | 10 × -25 × 10 | — |
| Body 2 / max [mm] | 20 × -15 × 20 | 20 × -15 × 20 | — |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -40 × -15 × 0 | -40 × -15 × 0 | — |
| Body 1 / max [mm] | 40 × 15 × 40 | 40 × 15 × 40 | — |
| Body 2 / min [mm] | 30 × -25 × 30 | 30 × -25 × 30 | — |
| Body 2 / max [mm] | 40 × -15 × 40 | 40 × -15 × 40 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 20 × 15 × 20 | 20 × 15 × 20 | pass |
| Bounds / min | -20 × -25 × 0 | -20 × -25 × 0 | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 20 × 15 × 20 | 20 × 15 × 20 | pass |
| Bounds / min | -20 × -25 × 0 | -20 × -25 × 0 | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 20 × 15 × 20 | 20 × 15 × 20 | pass |
| Bounds / min | -20 × -25 × 0 | -20 × -25 × 0 | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 20 × 15 × 20 | 20 × 15 × 20 | pass |
| Bounds / min | -20 × -25 × 0 | -20 × -25 × 0 | pass |
Model stages
- Create the parameterized Base
- Attach Marker with FRONT_TOP_RIGHT to BACK_TOP_RIGHT
- Preserve the corner relationship through parent resize
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- build123d — builder-build123d: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- cadquery — builder-cadquery: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pybosl2 — builder-pybosl2: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pythonscad — builder-pythonscad: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- 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,
15.0,
20.0
],
"actual_min": [
-20.0,
-25.0,
0.0
],
"expected_max": [
20.0,
15.0,
20.0
],
"expected_min": [
-20.0,
-25.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "56066ecdeb41a0ab6cfef0b30af952f6c4f2234956d4dd0d42952607dc52f828",
"size": 2513
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Base",
"max": [
20.0,
15.0,
20.0
],
"min": [
-20.0,
-15.0,
0.0
]
},
"expected": {
"label": null,
"max": [
20.0,
15.0,
20.0
],
"min": [
-20.0,
-15.0,
0.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Marker",
"max": [
20.0,
-15.0,
20.0
],
"min": [
10.0,
-25.0,
10.0
]
},
"expected": {
"label": null,
"max": [
20.0,
-15.0,
20.0
],
"min": [
10.0,
-25.0,
10.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"body_name": "Marker",
"bounds": {
"actual_max": [
20.0,
-15.0,
20.0
],
"actual_min": [
10.0,
-25.0,
10.0
],
"deltas": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"expected_max": [
20.0,
-15.0,
20.0
],
"expected_min": [
10.0,
-25.0,
10.0
],
"kind": "bounds",
"label": "Marker bounds",
"max_delta": 0.0,
"pass": true,
"tolerance": 0.001
},
"name_prefix": "Marker"
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/size_80x40/model.sc",
"sha256": "5e6f837b79459b91e7cb1911d5ba5bff7f644d61f2a993dfed3939de9c0df364",
"size": 6424
},
{
"kind": "file",
"path": "saved_designs/size_80x40/measurements.json",
"sha256": "1653aaac09fdba3ca9fca2e6f1982b7453754869c8db6a8841258a80efd273d4",
"size": 2498
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Base",
"max": [
40.0,
15.0,
40.0
],
"min": [
-40.0,
-15.0,
0.0
]
},
"expected": {
"label": null,
"max": [
40.0,
15.0,
40.0
],
"min": [
-40.0,
-15.0,
0.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Marker",
"max": [
40.0,
-15.0,
40.0
],
"min": [
30.0,
-25.0,
30.0
]
},
"expected": {
"label": null,
"max": [
40.0,
-15.0,
40.0
],
"min": [
30.0,
-25.0,
30.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"body_name": "Marker",
"bounds": {
"actual_max": [
40.0,
-15.0,
40.0
],
"actual_min": [
30.0,
-25.0,
30.0
],
"deltas": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"expected_max": [
40.0,
-15.0,
40.0
],
"expected_min": [
30.0,
-25.0,
30.0
],
"kind": "bounds",
"label": "Marker bounds",
"max_delta": 0.0,
"pass": true,
"tolerance": 0.001
},
"name_prefix": "Marker"
}
]
},
"id": "saved_design_size_80x40",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "27c01b1fbce7e33b043ad74d2aec45edf17d06de8909c299521e1bfc3e745bbe",
"size": 129
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "cb635a288d0ff94ad84fad0a47e28cad87f01650cf61d5f84d8d888441dae1a3",
"size": 10339
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "941a44e915855300a8bc64489ed114e21e89f41d2d145750ad7e7974fb23a818",
"size": 2000
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "1b88a461129738e59f6125c0a6958b6aded804b86c7d11a96b23dd083345dbb5",
"size": 3482
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "f6035403ea3b1f8d28cc686184088d1eb615368ea4678e0387d62354a46ec950",
"size": 764
}
],
"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.015046,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "cfa9abe67e3ac76263f9b4fb93fb7f84d86708f3f9f955328170e7f45a8c10eb",
"size": 145
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "2b30a75a55af5684f0eee902b70a1a96f48ee1241b880deec4bb09f279ffa7f2",
"size": 10156
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "85145d91f62ba64348814b05416c5993b453303b9cb9e53533f42944742ba566",
"size": 1997
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "87edd318c1f0c83c5a015234f7d7b8984fcbc6a12dd113457ac44552cc23ba08",
"size": 3406
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "cf1c2bf4b786b92fd0b3acfcba0a2cbdd4c663f5f1ed4d82d6875715bf4712bd",
"size": 729
}
],
"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.010417,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "1d61bdf421be9511a7be30f68785b0bd9bffe20a4eaf4d4174482a9b2e28e5a9",
"size": 160
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "6c985d0b1f1c3e102269997358497b3af5ed3a504ee608790c14546089d05ca1",
"size": 39813
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "6b37bace835d8911b63efbb47dabec54589326421498eaf477cc45205bcce727",
"size": 4924
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "a078e7022c89a3725ae7cefd8702ca0477d0eece3c0e46ca9375f0050e6ef0d4",
"size": 26544
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "18a590da172b8181eff8bdaedd3536d71a6ade428bce26796a640f51180c75be",
"size": 3516
}
],
"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.018519,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"historical_manifest_solidcraft_version": "0.30.1",
"migrated_from": "qualification/visual_baselines.json",
"migrated_without_reencoding": true,
"source_commit": "eebfda2980d453c6b878bb570423e8a755311c1c",
"verified_during_solidcraft_0_42_0_qualification": true
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
20.0,
15.0,
20.0
],
"actual_min": [
-20.0,
-25.0,
0.0
],
"expected_max": [
20.0,
15.0,
20.0
],
"expected_min": [
-20.0,
-25.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
20.0,
15.0,
20.0
],
"actual_min": [
-20.0,
-25.0,
0.0
],
"expected_max": [
20.0,
15.0,
20.0
],
"expected_min": [
-20.0,
-25.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
20.0,
15.0,
20.0
],
"actual_min": [
-20.0,
-25.0,
0.0
],
"expected_max": [
20.0,
15.0,
20.0
],
"expected_min": [
-20.0,
-25.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
20.0,
15.0,
20.0
],
"actual_min": [
-20.0,
-25.0,
0.0
],
"expected_max": [
20.0,
15.0,
20.0
],
"expected_min": [
-20.0,
-25.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/corner-anchor/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "corner-anchor-pybosl2-geometry"
}










