Verification
Symmetric parametric occurrence Placement
Two shared Block occurrences remain symmetric around one editable spacing parameter
What this verifies
Two occurrences of one Block definition are positioned at the negative and positive halves of one parent spacing parameter.
scpf source
Complete primary source from the site branch; built revision below.
"""Qualification: symmetric parametric occurrence Placement without joints."""
class Block:
def build(self):
return Box(20, 20, 10)
class ParametricPlacementPair:
spacing = 80.0
def build(self):
left = Block(
placement=Placement(x=-half(self.spacing))
)
right = left.copy(
placement=Placement(x=half(self.spacing))
)
return left + right
ParametricPlacementPair()
Engineering explanation
Symmetric parametric occurrence Placement
Documentation provenance: historical Qualification case text from commit
6472c7ca02090d83a0fedc8ca18f947a3d3d56ca; lowering wording updated during #559 for replay-bound occurrence IDs restored by change 0013 / #191.
Legacy group: components
Saved-design required: true
Goal
Verify the WoodFrame-style dependency shape: two occurrences of one reusable definition are placed symmetrically from one parent spacing parameter.
Forge API
left = Block(placement=Placement(x=-half(self.spacing))); right = left.copy(placement=Placement(x=half(self.spacing)))
Forge model
Two occurrences share one Block definition. Their absolute X placements are the negative and positive halves of the same parent parameter.
How Forge builds it in SolidCraft
Forge publishes spacing, creates one Block definition, binds both real occurrence IDs, and emits two occurrence.move expressions using -(spacing / 2) and spacing / 2. No predicted occurrence name and no placement joint is used.
SolidCraft result
With spacing=80 mm the two 20 mm blocks are centred at X=-40 and X=+40.
Saved-design test
Change spacing from 80 to 120 mm in the saved design; without rerunning Python the two centres must move symmetrically to X=-60 and X=+60.
Geometry evidence
Geometry-rationale provenance: X/Y placement and mutation values restored from
qualification/expectations.pyat commit6472c7ca02090d83a0fedc8ca18f947a3d3d56ca; Z bounds updated for the currentBox(..., anchor=Anchor.CENTER)contract introduced by change 0022.
Bounds sufficient: true
The two centred disjoint Block envelopes prove the symmetric baseline and mutation positions. Saved-design recompute proves both native placement expressions remain tied to the same spacing parameter.
Reference notes
- SolidCraft — Both occurrence translations remain parameter-referencing expressed moves in the saved design.
- CadQuery — Independent Assembly Locations provide a comparison for symmetric occurrence placement without constraints.
- PythonSCAD — Symmetric translate(-spacing/2) and translate(spacing/2) express the same visible intent.
- pyBOSL2 — Independent translated blocks verify the baseline symmetric geometry.
- build123d — Independent Locations verify the two baseline centers.
Generated command sequence — scpf (7)
component.create{ "bind": { "$block_occurrence_1": "occurrence" }, "command": "component.create", "params": { "grounded": false, "name": "Block" } }solid.box{ "command": "solid.box", "params": { "body_name": "Block", "center": [ 0, 0, 0 ], "height": 10, "length": 20, "width": 20 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.copy{ "bind": { "$block_occurrence_2": "occurrence" }, "command": "occurrence.copy", "params": { "component": "Block" } }parameters.add{ "command": "parameters.add", "params": { "expression": "80 mm", "name": "spacing" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$block_occurrence_1", "translate": [ "-(spacing / 2)", 0, 0 ] } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$block_occurrence_2", "translate": [ "spacing / 2", 0, 0 ] } }
Reference code
cadquery source · pass
"""CadQuery reference for two independently and symmetrically placed blocks."""
import cadquery as cq
block = cq.Solid.makeBox(
20,
20,
10,
cq.Vector(-10, -10, -5),
)
model = cq.Assembly()
model.add(block, name="left", loc=cq.Location((-40, 0, 0)))
model.add(block, name="right", loc=cq.Location((40, 0, 0)))
build123d source · pass
"""build123d reference: a symmetric pair of translated blocks."""
from build123d import Align, Box, BuildPart, Locations
center = (Align.CENTER, Align.CENTER, Align.CENTER)
with BuildPart() as model:
with Locations((-40, 0, 0), (40, 0, 0)):
Box(20, 20, 10, align=center)
pythonscad source · pass
"""PythonSCAD geometry reference for a symmetric pair of translated blocks."""
from pythonscad import *
left = cube([20, 20, 10], center=True).left(40)
right = cube([20, 20, 10], center=True).right(40)
model = left | right
pybosl2 source · pass
"""pyBOSL2 geometry reference for a symmetric pair of translated blocks."""
from pybosl2 import cuboid
left = cuboid([20, 20, 10]).left(40)
right = cuboid([20, 20, 10]).right(40)
model = left | right
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 | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -50 × -10 × -5 | -50 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -50 × -10 × -5 | -50 × -10 × -5 | — |
| Body 1 / max [mm] | -30 × 10 × 5 | -30 × 10 × 5 | — |
| Body 2 / min [mm] | 30 × -10 × -5 | 30 × -10 × -5 | — |
| Body 2 / max [mm] | 50 × 10 × 5 | 50 × 10 × 5 | — |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -70 × -10 × -5 | -70 × -10 × -5 | — |
| Body 1 / max [mm] | -50 × 10 × 5 | -50 × 10 × 5 | — |
| Body 2 / min [mm] | 50 × -10 × -5 | 50 × -10 × -5 | — |
| Body 2 / max [mm] | 70 × 10 × 5 | 70 × 10 × 5 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -50 × -10 × -5 | -50 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -50 × -10 × -5 | -50 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -50 × -10 × -5 | -50 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -50 × -10 × -5 | -50 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
Model stages
- Create one reusable Block definition
- Create two replay-bound occurrences
- Place them at -spacing/2 and +spacing/2
- Recompute the saved design after changing spacing
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": [
50.0,
10.0,
5.0
],
"actual_min": [
-50.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-50.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "10ae0227292886122a5fa2066851545495e72d3e53a93648f104007140ef9bc8",
"size": 2102
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Block",
"max": [
-30.0,
10.0,
5.0
],
"min": [
-50.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
-30.0,
10.0,
5.0
],
"min": [
-50.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block (Block:2)",
"max": [
50.0,
10.0,
5.0
],
"min": [
30.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
50.0,
10.0,
5.0
],
"min": [
30.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/spacing_120/model.sc",
"sha256": "eafe8649b20d837a423bbe0308fe6c1db3ec05a4d2f859a8bfc0e73340fac2b2",
"size": 4207
},
{
"kind": "file",
"path": "saved_designs/spacing_120/measurements.json",
"sha256": "974b93ee915d0ab2c79372ded20c9fde89cc8365d8cd8f1c11421c06228b4eb7",
"size": 2104
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Block",
"max": [
-50.0,
10.0,
5.0
],
"min": [
-70.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
-50.0,
10.0,
5.0
],
"min": [
-70.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block (Block:2)",
"max": [
70.0,
10.0,
5.0
],
"min": [
50.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
70.0,
10.0,
5.0
],
"min": [
50.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
}
},
"id": "saved_design_spacing_120",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "7e464b7328025b065456b1a284b2415abb289720bbb9452138e5a69765fdb197",
"size": 128
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "1c040004cdf55a25d69af2984b8693e74b74304a31811c47a5d20dd02f443dc0",
"size": 9870
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "a85b65950ac64f94f85fe83b9597fcc2cc057cabb184915ab445b4486d7845d8",
"size": 1995
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "007fb572c543139c0227a5cd620052c285c4683bbb1d0ef41453be4344bbec5e",
"size": 3058
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "64b9a64554f730036c2f3d9b61cc2ecd45798999e9214e48603368ace37c54d5",
"size": 578
}
],
"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.002894,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "d0678397aa0b386aaf1af1bf214186b5f708bb923b431b9f89256263c28930a2",
"size": 144
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "f1df1837d3750fa29e615acf4fb121e12b577f009ea384a7ba32854bfee7c2db",
"size": 9488
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "6a476a5657b0cbef44c9c64940f43e55c7ef7419498c703f736c26c9bd01e941",
"size": 1986
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "2b5b6b3b7b9fc2d21591d7578ad8df15910bd9dcd0711a080f49fb04ee30a937",
"size": 2665
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "75ee6f8f580bcf3c4109fdbe2a4cb419b4f24803e47d44235b5e016ec647c9e0",
"size": 437
}
],
"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.001157,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "0979bc389925356509e041e54a4e82cd892a87f7a081dabc581eb3ecefc74fe0",
"size": 159
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "90b5344af5559fa9895ca26115b70fffac0b245ed8930fb52c8098e2b7f68f9e",
"size": 20536
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "c2c0118e8dd6638a7781a9153f6a613cdcd81bb73732be96a131429b154f7b10",
"size": 3077
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "763bbb472a0b3482c7e1c6198574c19895a61a4b17367263ac3533637c7741cb",
"size": 12123
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "9a60847a5c826a8e032a0d70410b0d34debb0f0e09f4274dd359c3c6b83ecc06",
"size": 1682
}
],
"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.006944,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/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": "40891861567b1315eea08de59b7d2856d24d0a69",
"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-placement-pair-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-50.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-50.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-50.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-50.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-50.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-50.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-50.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-50.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-placement-pair/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-placement-pair-pybosl2-geometry"
}










