Verification
Copied Placement with rotation
Two copied Panel occurrences preserve both translation and Z-axis orientation
What this verifies
A non-square Panel definition is reused twice with complete absolute Placements so rotation never changes the authored parent-frame translations.
scpf source
Complete primary source from the site branch; built revision below.
"""Qualification: copied Placement keeps translation when rotation is present."""
class Panel:
def build(self):
return Box(20, 10, 4)
class RotatedCopyPlacement:
def build(self):
left = Panel(
placement=Placement(
x=-40,
rotation=(Z, 90),
)
)
right = left.copy(
placement=Placement(
x=40,
rotation=(Z, 90),
)
)
return left + right
RotatedCopyPlacement()
Engineering explanation
Copied Placement with rotation
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: false
Goal
Verify that a copied occurrence combining concrete XYZ and orientation keeps its declared parent-frame position instead of rotating a pre-applied copy translation.
Forge API
left = Panel(placement=Placement(x=-40, rotation=(Z, 90))); right = left.copy(placement=Placement(x=40, rotation=(Z, 90)))
Forge model
Two occurrences share one non-square Panel definition. Each carries one complete absolute Placement with X translation and Z-axis orientation.
How Forge builds it in SolidCraft
Forge creates/copies the Panel occurrence at native identity, binds each real occurrence ID, then applies each complete translation and Z=90 degree orientation through occurrence.move. No predicted Component:N name and no pre-rotated copy translation is used.
SolidCraft result
Two rotated 10 x 20 x 4 mm envelopes remain centred at X=-40 and X=+40. No placement joint is created.
Saved-design test
Not required: this case isolates concrete copy-plus-rotation lowering; parameter-driven occurrence recompute is proved by the dedicated parametric Placement cases.
Geometry evidence
Geometry-rationale provenance: X/Y placement restored from
qualification/expectations.pyat commit6472c7ca02090d83a0fedc8ca18f947a3d3d56ca; Z bounds updated for the currentBox(..., anchor=Anchor.CENTER)contract introduced by change 0022.
Bounds sufficient: true
The centred non-square 10 x 20 world envelopes prove that both Panel occurrences are rotated while their X centers remain at the authored -40/+40 positions.
Reference notes
- SolidCraft — Translation and rotation are applied together to each bound occurrence through occurrence.move.
- PythonSCAD — Independent geometry proves two 10 x 20 x 4 rotated envelopes at the expected centers.
- pyBOSL2 — Independent geometry checks the same rotated world envelopes.
- CadQuery — Independent Assembly Locations apply the same placement and orientation.
- build123d — Independent Rot and Locations reproduce the two placed panels.
Generated command sequence — scpf (6)
component.create{ "bind": { "$panel_occurrence_1": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Panel" } }solid.box{ "command": "solid.box", "params": { "body_name": "Panel", "center": [ 0, 0, 0 ], "height": 4, "length": 20, "width": 10 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.copy{ "bind": { "$panel_occurrence_2": "occurrence" }, "command": "occurrence.copy", "params": { "component": "Panel" } }occurrence.move{ "command": "occurrence.move", "params": { "angle": "90 deg", "axis": [ 0.0, 0.0, 1.0 ], "move_grounded": true, "occurrence": "$panel_occurrence_1", "translate": [ -40, 0, 0 ] } }occurrence.move{ "command": "occurrence.move", "params": { "angle": "90 deg", "axis": [ 0.0, 0.0, 1.0 ], "occurrence": "$panel_occurrence_2", "translate": [ 40, 0, 0 ] } }
Reference code
cadquery source · pass
"""CadQuery reference for two independently placed rotated panel occurrences."""
import cadquery as cq
# The Forge definition is 20 x 10 x 4 and each occurrence is rotated Z+90,
# giving a centred 10 x 20 x 4 world envelope.
panel = cq.Solid.makeBox(
20,
10,
4,
cq.Vector(-10, -5, -2),
)
rotation = cq.Location(cq.Vector(0, 0, 0), cq.Vector(0, 0, 1), 90)
model = cq.Assembly()
model.add(panel, name="left", loc=cq.Location((-40, 0, 0)) * rotation)
model.add(panel, name="right", loc=cq.Location((40, 0, 0)) * rotation)
build123d source · pass
"""build123d reference: two translated and Z-rotated panel occurrences."""
from build123d import Align, Box, BuildPart, Locations, Rot
center = (Align.CENTER, Align.CENTER, Align.CENTER)
with BuildPart() as model:
for x in (-40, 40):
with Locations((x, 0, 0)):
with Locations(Rot(0, 0, 90)):
Box(20, 10, 4, align=center)
pythonscad source · pass
"""PythonSCAD geometry reference for two rotated rectangular panels."""
from pythonscad import *
left = cube([10, 20, 4], center=True).left(40)
right = cube([10, 20, 4], center=True).right(40)
model = left | right
pybosl2 source · pass
"""pyBOSL2 geometry reference for two rotated rectangular panels."""
from pybosl2 import cuboid
left = cuboid([10, 20, 4]).left(40)
right = cuboid([10, 20, 4]).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 | 45 × 10 × 2 | 45 × 10 × 2 | pass |
| Bounds / min | -45 × -10 × -2 | -45 × -10 × -2 | pass |
| Volume / mm3 | 1600 | 1600 | pass |
| Watertight | true | true | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -45 × -10 × -2 | -45 × -10 × -2 | — |
| Body 1 / max [mm] | -35 × 10 × 2 | -35 × 10 × 2 | — |
| Body 2 / min [mm] | 35 × -10 × -2 | 35 × -10 × -2 | — |
| Body 2 / max [mm] | 45 × 10 × 2 | 45 × 10 × 2 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 45 × 10 × 2 | 45 × 10 × 2 | pass |
| Bounds / min | -45 × -10 × -2 | -45 × -10 × -2 | pass |
| Volume / mm3 | 1600 | 1600 | pass |
| Watertight | true | true | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 45 × 10 × 2 | 45 × 10 × 2 | pass |
| Bounds / min | -45 × -10 × -2 | -45 × -10 × -2 | pass |
| Volume / mm3 | 1600 | 1600 | pass |
| Watertight | true | true | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 45 × 10 × 2 | 45 × 10 × 2 | pass |
| Bounds / min | -45 × -10 × -2 | -45 × -10 × -2 | pass |
| Volume / mm3 | 1600 | 1600 | pass |
| Watertight | true | true | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 45 × 10 × 2 | 45 × 10 × 2 | pass |
| Bounds / min | -45 × -10 × -2 | -45 × -10 × -2 | pass |
| Volume / mm3 | 1600 | 1600 | pass |
| Watertight | true | true | pass |
Model stages
- Create one reusable Panel definition
- Bind both real native occurrence IDs
- Apply each full translation and rotation through occurrence.move
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": [
45.0,
10.0,
2.0
],
"actual_min": [
-45.0,
-10.0,
-2.0
],
"expected_max": [
45.0,
10.0,
2.0
],
"expected_min": [
-45.0,
-10.0,
-2.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 1600.0,
"delta_mm3": 0.0,
"expected_mm3": 1600.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "439f9fcfcb9618ebfdf42b716f23fb9fae0387af6ebf387323876424a25cf162",
"size": 1965
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Panel",
"max": [
-35.0,
10.0,
2.0
],
"min": [
-45.0,
-10.0,
-2.0
]
},
"expected": {
"label": null,
"max": [
-35.0,
10.0,
2.0
],
"min": [
-45.0,
-10.0,
-2.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Panel (Panel:2)",
"max": [
45.0,
10.0,
2.0
],
"min": [
35.0,
-10.0,
-2.0
]
},
"expected": {
"label": null,
"max": [
45.0,
10.0,
2.0
],
"min": [
35.0,
-10.0,
-2.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
}
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "d2477d351441c061d560aef28942b9aa5065f02a319e0724e477e653facc25a7",
"size": 128
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "ef964060e31316de7403d75cf128fa0c8f9bd16a9b1684223d4b757ce8e9a5a7",
"size": 9630
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "4fd98bae704155aba538e308920427d4b309873eb1608c5da5953a33d6f8740c",
"size": 2000
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "6709a33866dfff3ffcf9e1731763e00dd58d78287a971992a507062ca70b62e3",
"size": 2770
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "135d98b50823f27b1a839618273d5ec21af96487662cce8b5800950164140072",
"size": 557
}
],
"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.001591,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "5dcaf00c391f62b6010fc94ae61ab586360d72652556f240f58bb8b041b520a2",
"size": 144
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "05350b620efb0de9b2c206a7e2bff70b9c000f07a326d339c5a9d4d4fb29a803",
"size": 9470
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "2a3941f24eb20989bcee6af22a4a2f3ba01d4b73a25d6113eb1465ab14886bd4",
"size": 1986
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "6e46af65ecd2f9a4da2bd917819f2479ce05d9d3a615e39f1960139caaca41f7",
"size": 2635
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "80676720b4538107e9efafddb3aede3a2e939266d5174600921039c5ca8d51b4",
"size": 456
}
],
"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.002025,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "d526feb8ca90e07c40ff86337979d71da3e0c3eed69e8b7471bbd42d937ace9f",
"size": 159
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "98c166b89b51cbd43b18ab2819d258f73b83ff08b1c98dd5ba0fad74d4965808",
"size": 17947
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "cec9f7c8462048ee8472a188486aa36f99461641f7debbb084d1267a1467a8fa",
"size": 2768
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "2a5a9e5a296dc8e1f361ce3688543502cb2d0d3aad50999767c94455e3fc01ae",
"size": 9967
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "3224bdc00dcc8bffdbd334eadc171428e7b59e17379f1773cd15b33c914d5a6b",
"size": 1279
}
],
"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.003617,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/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": "08e577e29f32b4880dfb38a3772a0b65ca2c8648",
"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": "rotated-copy-placement-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
45.0,
10.0,
2.0
],
"actual_min": [
-45.0,
-10.0,
-2.0
],
"expected_max": [
45.0,
10.0,
2.0
],
"expected_min": [
-45.0,
-10.0,
-2.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 1600.0,
"delta_mm3": 0.0,
"expected_mm3": 1600.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
45.0,
10.0,
2.0
],
"actual_min": [
-45.0,
-10.0,
-2.0
],
"expected_max": [
45.0,
10.0,
2.0
],
"expected_min": [
-45.0,
-10.0,
-2.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 1600.0,
"delta_mm3": 0.0,
"expected_mm3": 1600.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
45.0,
10.0,
2.0
],
"actual_min": [
-45.0,
-10.0,
-2.0
],
"expected_max": [
45.0,
10.0,
2.0
],
"expected_min": [
-45.0,
-10.0,
-2.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 1600.0,
"delta_mm3": 0.0,
"expected_mm3": 1600.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
45.0,
10.0,
2.0
],
"actual_min": [
-45.0,
-10.0,
-2.0
],
"expected_max": [
45.0,
10.0,
2.0
],
"expected_min": [
-45.0,
-10.0,
-2.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 1600.0,
"delta_mm3": 0.0,
"expected_mm3": 1600.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-copy-placement/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-copy-placement-pybosl2-geometry"
}










