Verification
Face anchor follows parent geometry
RIGHT-to-LEFT attachment follows an editable parent width
What this verifies
A Block attached to the Base RIGHT face remains tied to native parent topology when the parent width changes.
scpf source
Complete primary source from the site branch; built revision below.
class Base:
width = 40.0
def build(self):
return Box(self.width, 30, 10, anchor=Anchor.BOTTOM)
class Block:
def build(self):
return Box(20, 20, 10, anchor=Anchor.BOTTOM)
class ParametricAnchor:
base_width = 40.0
def build(self):
base = Base(width=self.base_width)
block = Block().attach(
base,
parent=Anchor.RIGHT,
child=Anchor.LEFT,
)
return base + block
ParametricAnchor()
Engineering explanation
Face anchor follows parent geometry
Documentation provenance: the engineering text below is copied verbatim from the last canonical
qualification/cases.pysource before its removal, commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Legacy group: anchors
Saved-design required: true
Goal
Verify that a standard face anchor remains tied to changing parent topology.
Forge API
Anchor.RIGHT / Anchor.LEFT with parent parameter propagation
Forge model
The attachment references the parent’s semantic RIGHT face, not a frozen absolute X coordinate.
How Forge builds it in SolidCraft
joint.create uses a native face reference derived from the parent occurrence; the parent width remains a SolidCraft parameter.
SolidCraft result
The attached block stays on the parent’s right face.
Saved-design test
Change base_width from 40 to 80 mm in the saved design; the block follows the moved RIGHT face.
Geometry evidence
Geometry-rationale provenance: copied verbatim from
qualification/geometry_contracts.pyat commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Bounds sufficient: true
The two body sizes and positions show the initial face-relative placement. The saved SolidCraft model is then changed to confirm that the same anchor is still used.
Reference notes
- BOSL2 — BOSL2 cardinal anchors similarly express a meaningful side of the parent instead of an absolute coordinate.
Generated command sequence — scpf (10)
parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "base_width", "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": 10, "length": "base_width", "width": 30 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }component.create{ "bind": { "$block": "occurrence" }, "command": "component.create", "params": { "grounded": false, "name": "Block" } }solid.box{ "command": "solid.box", "params": { "body_name": "Block", "corner": [ -10.0, -10.0, 0 ], "height": 10, "length": 20, "width": 20 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$block", "translate": [ "((-(base_width / 2)) + (base_width)) - -10 mm", 0, 0.0 ] } }joint.create{ "command": "joint.create", "params": { "a": { "face": [ 20.0, 0.0, 5.0 ], "occurrence": "$base" }, "b": { "face": [ 20.0, 0.0, 5.0 ], "occurrence": "$block" }, "name": "Attach Block to Base", "type": "rigid" } }browser.visibility{ "command": "browser.visibility", "params": { "folder": "joints", "visible": false } }
Reference code
cadquery source · pass
"""CadQuery reference for a block placed against the base's right face."""
import cadquery as cq
base_width = 40.0
child_width = 20.0
base = cq.Solid.makeBox(base_width, 30, 10, cq.Vector(-base_width / 2, -15, 0))
block = cq.Solid.makeBox(child_width, 20, 10, cq.Vector(-child_width / 2, -10, 0))
model = cq.Assembly()
model.add(base, name="base")
model.add(
block,
name="block",
loc=cq.Location((base_width / 2 + child_width / 2, 0, 0)),
)
build123d source · pass
"""build123d reference: centered block positioned against a right face."""
from build123d import Align, Box, BuildPart, Locations
base_width, child_width = 40.0, 20.0
bottom = (Align.CENTER, Align.CENTER, Align.MIN)
with BuildPart() as model:
Box(base_width, 30, 10, align=bottom)
with Locations((base_width / 2 + child_width / 2, 0, 0)):
Box(child_width, 20, 10, align=bottom)
pythonscad source · pass
"""PythonSCAD geometry reference for a block placed on the base's right face."""
from pythonscad import *
base_width = 40.0
base = cube([base_width, 30, 10], center=True).up(5)
block = cube([20, 20, 10], center=True).up(5).right(base_width / 2 + 10)
model = base | block
pybosl2 source · pass
"""pyBOSL2 anchor reference for the parametric-anchor qualification."""
from pybosl2 import Anchor, cuboid
base = cuboid([40, 30, 10]).up(5)
block = cuboid([20, 20, 10]).up(5)
model = base.attach(Anchor.RIGHT, block, child_anchor=Anchor.LEFT).realize()
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 | 40 × 15 × 10 | 40 × 15 × 10 | pass |
| Bounds / min | -20 × -15 × 0 | -20 × -15 × 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 × 10 | 20 × 15 × 10 | — |
| Body 2 / min [mm] | 20 × -10 × 0 | 20 × -10 × 0 | — |
| Body 2 / max [mm] | 40 × 10 × 10 | 40 × 10 × 10 | — |
| 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 × 10 | 40 × 15 × 10 | — |
| Body 2 / min [mm] | 40 × -10 × 0 | 40 × -10 × 0 | — |
| Body 2 / max [mm] | 60 × 10 × 10 | 60 × 10 × 10 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 15 × 10 | 40 × 15 × 10 | pass |
| Bounds / min | -20 × -15 × 0 | -20 × -15 × 0 | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 15 × 10 | 40 × 15 × 10 | pass |
| Bounds / min | -20 × -15 × 0 | -20 × -15 × 0 | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 15 × 10 | 40 × 15 × 10 | pass |
| Bounds / min | -20 × -15 × 0 | -20 × -15 × 0 | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 15 × 10 | 40 × 15 × 10 | pass |
| Bounds / min | -20 × -15 × 0 | -20 × -15 × 0 | pass |
Model stages
- Create the parameterized Base
- Attach Block from Base RIGHT to child LEFT
- Keep the face anchor associative to parent width
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": [
40.0,
15.0,
10.0
],
"actual_min": [
-20.0,
-15.0,
0.0
],
"expected_max": [
40.0,
15.0,
10.0
],
"expected_min": [
-20.0,
-15.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "c1c1d52d3c8edfc801da8bed8e1fa2a3efd0f30cafc42db27483a2a8173a59a3",
"size": 2354
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Base",
"max": [
20.0,
15.0,
10.0
],
"min": [
-20.0,
-15.0,
0.0
]
},
"expected": {
"label": null,
"max": [
20.0,
15.0,
10.0
],
"min": [
-20.0,
-15.0,
0.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block",
"max": [
40.0,
10.0,
10.0
],
"min": [
20.0,
-10.0,
0.0
]
},
"expected": {
"label": null,
"max": [
40.0,
10.0,
10.0
],
"min": [
20.0,
-10.0,
0.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"body_name": "Block",
"bounds": {
"actual_max": [
40.0,
10.0,
10.0
],
"actual_min": [
20.0,
-10.0,
0.0
],
"deltas": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"expected_max": [
40.0,
10.0,
10.0
],
"expected_min": [
20.0,
-10.0,
0.0
],
"kind": "bounds",
"label": "Block bounds",
"max_delta": 0.0,
"pass": true,
"tolerance": 0.001
},
"name_prefix": "Block"
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/base_width_80/model.sc",
"sha256": "9d6b76af96e135f7a754069fdf2cd1dcbf2af64a15934c1ba395448e6db31380",
"size": 6408
},
{
"kind": "file",
"path": "saved_designs/base_width_80/measurements.json",
"sha256": "d4cc36191f284e61045e8742d78f8634ba2f681df47ffee3a4f60abf6eb5f1c2",
"size": 2323
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Base",
"max": [
40.0,
15.0,
10.0
],
"min": [
-40.0,
-15.0,
0.0
]
},
"expected": {
"label": null,
"max": [
40.0,
15.0,
10.0
],
"min": [
-40.0,
-15.0,
0.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block",
"max": [
60.0,
10.0,
10.0
],
"min": [
40.0,
-10.0,
0.0
]
},
"expected": {
"label": null,
"max": [
60.0,
10.0,
10.0
],
"min": [
40.0,
-10.0,
0.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"body_name": "Block",
"bounds": {
"actual_max": [
60.0,
10.0,
10.0
],
"actual_min": [
40.0,
-10.0,
0.0
],
"deltas": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"expected_max": [
60.0,
10.0,
10.0
],
"expected_min": [
40.0,
-10.0,
0.0
],
"kind": "bounds",
"label": "Block bounds",
"max_delta": 0.0,
"pass": true,
"tolerance": 0.001
},
"name_prefix": "Block"
}
]
},
"id": "saved_design_base_width_80",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "7e13ff394baae61a9604e119f7830fe3062b43a5e01f77604b69158ad7261fdc",
"size": 128
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "4b655de339d1212acba7e2680784c3a241e8c1ce19afada438567fa3f2061f3e",
"size": 9925
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "e71cf5aadfd15ad581a1cd137ed2339ba606e5bac55b2fe47e2a427761b8e521",
"size": 1991
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "2631ca49ee0f653e5821f8afaf12310f2df5b806b70d1bf76b4cf57812a85903",
"size": 2897
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "ca9f7396f3b987e9f15a71ed13ab3dea816a3c4060f73815cf498747eb05e80b",
"size": 586
}
],
"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.000579,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "f8351a6f00a734feea09a7de267a3cb43ee6d2492b74aac53e460ff1c96e55a2",
"size": 144
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "a7a47d811e7caccb6ecd094b61e32485ca8750548e2b32d4e9e3100a2c7c438b",
"size": 9674
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "729bb40aa93ee88bda222b712f789eaffe5689bb2814d9c3d72d24b60b3e7141",
"size": 1997
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "d80aca0ee04f9fad476b8c9c733d0abfdbb520e823663c43c40e238bef2082ad",
"size": 2712
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "92fa3eef0e080435e96f62dc904b0eff0d7036017e0ed5c6a20eb462911b02b5",
"size": 539
}
],
"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": "b6063b6d34e951d170f577691aa26428e7c566201155b145df303a314403a72e",
"size": 159
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "bca1ee195bd04dd67dc3370bbcd69074ab4a777b0ea12bfe01f2b1326069cbf6",
"size": 31505
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "11cb56307f2943f60a6f2e57bcdd6d9ea606aceba0ba8e2cea04c3a1ed8de4e0",
"size": 4222
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "099cda5217a192acd572997e445509a5bf3a1913cf12ea3b7e550b6123e91f53",
"size": 20396
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "8bda13131ae928ff86ad03c7983b2419e687611fbd81cb59c7b5251dc9527f22",
"size": 2563
}
],
"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.000579,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-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": "8acad149cdaaef729c2cd6f6929b9c73bf785ec8",
"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": "parametric-anchor-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
15.0,
10.0
],
"actual_min": [
-20.0,
-15.0,
0.0
],
"expected_max": [
40.0,
15.0,
10.0
],
"expected_min": [
-20.0,
-15.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
15.0,
10.0
],
"actual_min": [
-20.0,
-15.0,
0.0
],
"expected_max": [
40.0,
15.0,
10.0
],
"expected_min": [
-20.0,
-15.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
15.0,
10.0
],
"actual_min": [
-20.0,
-15.0,
0.0
],
"expected_max": [
40.0,
15.0,
10.0
],
"expected_min": [
-20.0,
-15.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
15.0,
10.0
],
"actual_min": [
-20.0,
-15.0,
0.0
],
"expected_max": [
40.0,
15.0,
10.0
],
"expected_min": [
-20.0,
-15.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-anchor/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-anchor-pybosl2-geometry"
}










