Verification
Rotated standalone Sketch cutters
Local Sketch frames drive non-axis-aligned native Boolean cuts
What this verifies
Two standalone triangular Sketches use explicit local origin and rotation frames, extrude to native cutters and subtract from one Box.
scpf source
Complete primary source from the site branch; built revision below.
"""Rotated standalone Sketch cutter regression model."""
def wedge(name, origin, rotation):
with Sketch(
name=name,
plane="XY",
origin=origin,
rotation=rotation,
) as sketch:
Polygon2D([
(-4, -4),
(4, -4),
(0, 4),
])
return sketch.extrude(8)
class RotatedSketchCutter:
def build(self):
body = Box(60, 60, 30)
left = wedge("Left wedge", (-12, 0, 0), (90, 0, 45))
right = wedge("Right wedge", (12, 0, 0), (90, 0, -45))
return body - left - right
RotatedSketchCutter()
Engineering explanation
Rotated standalone Sketch cutters
Group: features
Saved-design required: false
Documentation provenance: Forge #785 promotes the released #750 regression fixture to public Verification.
Goal
Prove that standalone Sketches with explicit local rotation frames remain native Sketch history when their extrusions are used as non-axis-aligned Boolean cutters.
Forge API
Sketch(..., origin=..., rotation=...), Polygon2D(...), Sketch.extrude(...) and normal Boolean subtraction.
Forge model
A 60 × 60 × 30 mm Box is cut by two triangular 8 mm extrusions authored in local Sketch frames rotated ±45 degrees.
How Forge builds it in SolidCraft
Forge creates each standalone Sketch with its explicit origin and native frame directions, authors the Polygon2D in that local frame, extrudes it and applies the result directly as a cut against the parent body.
SolidCraft result
One Box body contains two native subtractive extrusions sourced from separately named rotated Sketches.
Saved-design test
No separate parameter mutation is required for this focused frame/lowering case; native Sketch-frame and cut-target command contracts are the primary evidence.
Geometry evidence
Geometry-rationale provenance: Forge #785 / #750 public capability promotion. Bounds sufficient:
false
Bounds alone cannot prove that the two triangular cutters were authored in the intended rotated local frames, so native Sketch-frame inspection is required.
Reference notes
- Native SolidCraft history — This verifies a Forge/SolidCraft local-frame capability rather than cross-kernel shape equivalence; no artificial external reference is required.
Generated command sequence — scpf (9)
solid.box{ "command": "solid.box", "params": { "body_name": "RotatedSketchCutter", "center": [ 0, 0, 0 ], "height": 30, "length": 60, "width": 60 } }sketch.create{ "command": "sketch.create", "params": { "name": "Left wedge", "plane": { "origin": [ -12.0, 0.0, 0.0 ], "x_dir": [ 0.7071067811865476, 0.7071067811865475, 0.0 ], "y_dir": [ 0.0, 0.0, 1.0 ] } } }sketch.line{ "command": "sketch.line", "params": { "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -4, -4 ], [ 4, -4 ], [ 0, 4 ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.extrude{ "command": "solid.extrude", "params": { "direction": "positive", "distance": 8, "operation": "cut", "targets": [ "RotatedSketchCutter" ] } }sketch.create{ "command": "sketch.create", "params": { "name": "Right wedge", "plane": { "origin": [ 12.0, 0.0, 0.0 ], "x_dir": [ 0.7071067811865476, -0.7071067811865475, 0.0 ], "y_dir": [ 0.0, 0.0, 1.0 ] } } }sketch.line{ "command": "sketch.line", "params": { "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -4, -4 ], [ 4, -4 ], [ 0, 4 ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.extrude{ "command": "solid.extrude", "params": { "direction": "positive", "distance": 8, "operation": "cut", "targets": [ "RotatedSketchCutter" ] } }
Reference code
No independent implementation is declared.
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 |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| Body envelopes / count | 1 | 1 | pass |
| Body 1 / min [mm] | -30 × -30 × -15 | -30 × -30 × -15 | — |
| Body 1 / max [mm] | 30 × 30 × 15 | 30 × 30 × 15 | — |
Model stages
- Author triangular Polygon2D profiles in rotated local Sketch frames
- Extrude each Sketch as a standalone native solid
- Cut both rotated solids from the parent Box
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
native: 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
native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "a722cfc390eae4b2695fcb628deb3af91468f8615ff86df5e2b8f2d74b7516db",
"size": 2761
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"body_envelopes": {
"actual_count": 1,
"expected_count": 1,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "RotatedSketchCutter",
"max": [
30.0,
30.0,
15.0
],
"min": [
-30.0,
-30.0,
-15.0
]
},
"expected": {
"label": null,
"max": [
30.0,
30.0,
15.0
],
"min": [
-30.0,
-30.0,
-15.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.01,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"selector": "sole",
"volume": {
"actual": 107488.0,
"delta": 0.0,
"expected": 107488.0,
"kind": "scalar",
"label": "sole body volume",
"pass": true,
"tolerance": 1.0
}
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-sketch-cutter/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-sketch-cutter"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "fde32b7f2bf15466d5a7d35a3e6a580cd5fb2f8af1317ed95770d7afdc849505",
"size": 127
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "6af5867bff1ea4394ab30cb6c0671e08ae9b6d89d3400cc5962bc56cc0e14b5c",
"size": 10110
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "93c515486b42b96c1dbb79e6d60d7ad074e50d58d88b12e884b0719c5b33b81a",
"size": 1987
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "801646083661e95fccd14bdd4392ae46e86e287d5010629eb24316b1daab499c",
"size": 3258
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "bc233daded6b8224ec33a040a7f28da05510199706796c233e4a1be2d504fe01",
"size": 484
}
],
"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.0,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "70e13773a70effe185fa040695c45e6136955e87603ffa74d00aaea7aa254aec",
"size": 143
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "6697028de78de31780c1e384c5de88f76bf113b136f9f5b1605708426280a363",
"size": 10158
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "93c515486b42b96c1dbb79e6d60d7ad074e50d58d88b12e884b0719c5b33b81a",
"size": 1987
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "59b3a676d98a08c55f2d7218eb91f80f260d531776d87f79ebf22f189c1cb136",
"size": 3330
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "20b81b0281b5cd8029a40c805340404f7b476368daf5e9c352e998e69df88082",
"size": 481
}
],
"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": "bdad1e0777c99c51d8e29ab1aa46914a86322a74199ecf782cbf25119d556b6a",
"size": 158
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "f5c7750743c9ec87acc2207223119f61aea755c9a674c9244c153b97dc32af85",
"size": 37548
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "afd36e82e8dbb6560e78bcfbc6888194e7c665f64ab4955488bc1e2baca8a5cb",
"size": 4561
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "574d664718f7683b99192d3bb6bea62526d7b3e7942be0ee11794c119534d933",
"size": 24287
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "cb38e0e32e2f61d437f9de0f2b86c7857dea3052e13c73dfd03eb23c60838049",
"size": 3033
}
],
"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.0,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/rotated-sketch-cutter/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"runtime": "ghcr.io/brainboxemb/cad-solidcraft:v0.3.6",
"solidcraft_version": "0.49.0",
"source_commit": "90b7eba19227032766dc1309ae8d851c4cb09553",
"workflow_run": 45873531238
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "rotated-sketch-cutter-scpf-visual"
}











