Verification
Native attachment clocking angle
Joint clocking stays a native 90 degree attachment value
What this verifies
A rectangular Arm is attached to a Base with a 90 degree clocking angle so orientation remains relationship intent rather than baked child geometry.
scpf source
Complete primary source from the site branch; built revision below.
"""Qualification: attach(angle=...) is a native joint clocking value."""
class Base:
WIDTH = 60.0
DEPTH = 60.0
HEIGHT = 10.0
def build(self):
return Box(self.WIDTH, self.DEPTH, self.HEIGHT, anchor=Anchor.BOTTOM)
class Arm:
LENGTH = 30.0
WIDTH = 10.0
HEIGHT = 6.0
def build(self):
return Box(self.LENGTH, self.WIDTH, self.HEIGHT, anchor=Anchor.BOTTOM)
class AttachAngle:
def build(self):
base = Base()
arm = Arm().attach(
base,
parent=Anchor.TOP,
child=Anchor.BOTTOM,
angle=90,
)
return base + arm
AttachAngle()
Engineering explanation
Native attachment clocking angle
Documentation provenance: the engineering text below is copied verbatim from the last canonical
qualification/cases.pysource before its removal, commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Legacy group: associativity
Goal
Verify that attach(angle=…) remains a native rigid-joint turn rather than being pre-baked into child geometry or an occurrence rotation.
Forge API
Arm().attach(base, parent=Anchor.TOP, child=Anchor.BOTTOM, angle=90)
Forge model
One square Base and one non-square 30x10 Arm. The child definition stays neutral; only the attachment carries the quarter-turn.
How Forge builds it in SolidCraft
joint.create(type=‘rigid’, angle=90) is the only authored clocking relationship. Forge does not rotate the Arm occurrence separately.
SolidCraft result
The Arm sits on the Base TOP face and its 30x10 footprint is quarter-turned to 10x30 in world XY.
Saved-design test
Not required; this case isolates native orientation/clocking and is qualified by measured bounds plus fixed-camera visual regression.
Geometry evidence
Geometry-rationale provenance: copied verbatim from
qualification/geometry_contracts.pyat commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Bounds sufficient: true
The non-square arm size shows whether the quarter-turn is correct. The saved SolidCraft model is also checked for the expected joint angle.
Reference notes
- SolidCraft — The joint angle is the persisted native relationship value that clocks the child about the attachment normal.
- BOSL2 — Conceptually comparable to spin/clocking around an attachment normal, while the child geometry remains reusable and neutral.
Generated command sequence — scpf (9)
component.create{ "bind": { "$base": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Base" } }solid.box{ "command": "solid.box", "params": { "body_name": "Base", "corner": [ -30.0, -30.0, 0 ], "height": 10.0, "length": 60.0, "width": 60.0 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }component.create{ "bind": { "$arm": "occurrence" }, "command": "component.create", "params": { "grounded": false, "name": "Arm" } }solid.box{ "command": "solid.box", "params": { "body_name": "Arm", "corner": [ -15.0, -5.0, 0 ], "height": 6.0, "length": 30.0, "width": 10.0 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$arm", "translate": [ 0, 0, 10.0 ] } }joint.create{ "command": "joint.create", "params": { "a": { "face": [ 0.0, 0.0, 10.0 ], "occurrence": "$base" }, "angle": 90.0, "b": { "face": [ 0.0, 0.0, 10.0 ], "occurrence": "$arm" }, "name": "Attach Arm to Base", "type": "rigid" } }browser.visibility{ "command": "browser.visibility", "params": { "folder": "joints", "visible": false } }
Reference code
cadquery source · pass
"""CadQuery assembly reference for a 90-degree clocked top attachment."""
import cadquery as cq
base = cq.Solid.makeBox(60, 60, 10, cq.Vector(-30, -30, 0))
arm = cq.Solid.makeBox(30, 10, 6, cq.Vector(-15, -5, 0))
clocked = cq.Location(cq.Vector(0, 0, 10), cq.Vector(0, 0, 1), 90)
model = cq.Assembly()
model.add(base, name="base")
model.add(arm, name="arm", loc=clocked)
build123d source · pass
"""build123d attach-angle reference: a top-mounted arm clocked 90 degrees in XY."""
from build123d import Align, Box, BuildPart, Locations, Rot
bottom = (Align.CENTER, Align.CENTER, Align.MIN)
with BuildPart() as model:
Box(60, 60, 10, align=bottom)
with Locations((0, 0, 10)):
with Locations(Rot(0, 0, 90)):
Box(30, 10, 6, align=bottom)
pythonscad source · pass
"""PythonSCAD geometry reference for a 90 degree clocked top attachment."""
from pythonscad import *
base = cube([60, 60, 10], center=True).up(5)
arm = cube([30, 10, 6], center=True).up(3).rotz(90).up(10)
model = base | arm
pybosl2 source · pass
"""pyBOSL2 reference: mate the arm to TOP and spin it 90 degrees."""
from pybosl2 import Anchor, cuboid
base = cuboid([60, 60, 10]).up(5)
arm = cuboid([30, 10, 6]).up(3)
model = base.attach(
Anchor.TOP,
arm,
child_anchor=Anchor.BOTTOM,
spin=90,
).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 | 30 × 30 × 16 | 30 × 30 × 16 | pass |
| Bounds / min | -30 × -30 × 0 | -30 × -30 × 0 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 2 | 2 | pass |
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -30 × -30 × 0 | -30 × -30 × 0 | — |
| Body 1 / max [mm] | 30 × 30 × 10 | 30 × 30 × 10 | — |
| Body 2 / min [mm] | -5 × -15 × 10 | -5 × -15 × 10 | — |
| Body 2 / max [mm] | 5 × 15 × 16 | 5 × 15 × 16 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 30 × 30 × 16 | 30 × 30 × 16 | pass |
| Bounds / min | -30 × -30 × 0 | -30 × -30 × 0 | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 30 × 30 × 16 | 30 × 30 × 16 | pass |
| Bounds / min | -30 × -30 × 0 | -30 × -30 × 0 | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 30 × 30 × 16 | 30 × 30 × 16 | pass |
| Bounds / min | -30 × -30 × 0 | -30 × -30 × 0 | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 30 × 30 × 16 | 30 × 30 × 16 | pass |
| Bounds / min | -30 × -30 × 0 | -30 × -30 × 0 | pass |
Model stages
- Create the Base and reusable Arm components
- Attach Arm TOP-to-BOTTOM with a 90 degree joint angle
- Keep the rotated Arm orientation in native attachment history
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": [
30.0,
30.0,
16.0
],
"actual_min": [
-30.0,
-30.0,
0.0
],
"expected_max": [
30.0,
30.0,
16.0
],
"expected_min": [
-30.0,
-30.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "4821a38963b9bc907434ac8ede475a0adaf6be034f86574e8aeacbeb4c2e1b4d",
"size": 2210
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 2,
"expected": 2,
"label": "SolidCraft body count",
"pass": true
},
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Base",
"max": [
30.0,
30.0,
10.0
],
"min": [
-30.0,
-30.0,
0.0
]
},
"expected": {
"label": null,
"max": [
30.0,
30.0,
10.0
],
"min": [
-30.0,
-30.0,
0.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Arm",
"max": [
5.000000000000001,
15.0,
16.0
],
"min": [
-5.000000000000001,
-15.0,
10.0
]
},
"expected": {
"label": null,
"max": [
5.0,
15.0,
16.0
],
"min": [
-5.0,
-15.0,
10.0
]
},
"max_delta": 8.881784197001252e-16
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"body_name": "Arm",
"bounds": {
"actual_max": [
5.000000000000001,
15.0,
16.0
],
"actual_min": [
-5.000000000000001,
-15.0,
10.0
],
"deltas": [
8.881784197001252e-16,
0.0,
0.0,
8.881784197001252e-16,
0.0,
0.0
],
"expected_max": [
5.0,
15.0,
16.0
],
"expected_min": [
-5.0,
-15.0,
10.0
],
"kind": "bounds",
"label": "Arm bounds",
"max_delta": 8.881784197001252e-16,
"pass": true,
"tolerance": 0.001
},
"name_prefix": "Arm"
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "e4430ea508484704143c8bdfadb5747ed7b590ec13885ee9d9ec290299dd1b83",
"size": 127
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "01b043bdc07070995696f7791d8fd0de0abb97825ff38fb24372d347442217c9",
"size": 10058
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "7f0b08c93639bca4c768df6120ed8ce30eec842c79d3ce4631381559ad19aff0",
"size": 2002
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "069188fcd2dd553e3c1bc6b300f2ffa003fa27ddc01b637d27de31101b35ae8a",
"size": 3217
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "3f735d94f09f81c2f9690920015ca32ce4e0bf33039f2bf4f31c220d26e596fb",
"size": 746
}
],
"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.010272,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "9a5217623620477b3f241c6c6c1e17376f35125fe17ea017e69e57d6fdf93ab1",
"size": 143
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "04f4704072730e31230abd610dc1d51d8572fac289f040834732f87e07d3764f",
"size": 10140
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "53c462cf29823db6b56d2c58eeaaaf147f14c37c7a0f8339df92b0313bb59823",
"size": 2001
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "2999bf3210850ecdb0dacf9c4f19d26f1cc21340435b6bb8f309ea95e53910c4",
"size": 3364
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "902f26c9f1c143b13f7cf7c8d410f109862abf7041061746707ad96800e7401f",
"size": 744
}
],
"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.015046,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "3487144fd33b84d388bc872ee2dba7820138df7ea1024e9a2e953c05f996d3b4",
"size": 158
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "39ed1374dd4c6c1ae4bad833b2a7430752bcbad195f52ad1f870bbe7ed5e361f",
"size": 44337
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "6d775dfc51881d50be11a597ec8c0f8ea1d915b9f738163311f8d2dce2d9a98e",
"size": 5066
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "29825a31d8c267b56fcd37c4f61a4df4e3b26343fe24e1ac0ed1f8622d276e8b",
"size": 28593
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "7970a2cb622ce0db550957c7bdd4381d13808ae4d1dd87b87a70bb10c3d5fc8b",
"size": 3905
}
],
"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.021412,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/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": "e7206d26d1369910df7b40e0aea0e1866493a90b",
"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": "attach-angle-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
30.0,
30.0,
16.0
],
"actual_min": [
-30.0,
-30.0,
0.0
],
"expected_max": [
30.0,
30.0,
16.0
],
"expected_min": [
-30.0,
-30.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
30.0,
30.0,
16.0
],
"actual_min": [
-30.0,
-30.0,
0.0
],
"expected_max": [
30.0,
30.0,
16.0
],
"expected_min": [
-30.0,
-30.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
30.0,
30.0,
16.0
],
"actual_min": [
-30.0,
-30.0,
0.0
],
"expected_max": [
30.0,
30.0,
16.0
],
"expected_min": [
-30.0,
-30.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
30.0,
30.0,
16.0
],
"actual_min": [
-30.0,
-30.0,
0.0
],
"expected_max": [
30.0,
30.0,
16.0
],
"expected_min": [
-30.0,
-30.0,
0.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/attach-angle/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "attach-angle-pybosl2-geometry"
}










