Verification
Shifted-axis Revolve
One stepped offset revolve cut remains one native suppressible feature
What this verifies
A stepped radial profile is revolved 360 degrees around a Y-axis shifted to a parameter-driven X/Z location, then applied as one cut to a panel. A native configuration row suppresses that exact revolve feature as one unit.
scpf source
Complete primary source from the site branch; built revision below.
"""One shifted native revolve cut is one suppressible configuration feature."""
class ShiftedAxisRevolve:
axis_x = 8.0
axis_z = 3.0
relief_d = 4.5
core_d = 3.7
def build(self):
panel = Box(40, 24, 20)
with Sketch(
name="Stepped pass through",
plane="XY",
offset=self.axis_z,
) as profile:
Polygon2D(
[
(self.axis_x, -12),
(self.axis_x + self.relief_d / 2, -12),
(self.axis_x + self.relief_d / 2, -9),
(self.axis_x + self.core_d / 2, -9),
(self.axis_x + self.core_d / 2, 9),
(self.axis_x + self.relief_d / 2, 9),
(self.axis_x + self.relief_d / 2, 12),
(self.axis_x, 12),
],
plane="XY",
)
pass_through = profile.revolve(
axis=AxisLine(
Axis.Y,
origin=(self.axis_x, 0, self.axis_z),
),
)
body = panel - pass_through
return Configure(
body,
active="Cut",
columns=(Suppress(pass_through),),
rows={
"Cut": (False,),
"Suppressed": (True,),
},
)
ShiftedAxisRevolve()
Engineering explanation
This case verifies that a shifted revolve is still one native SolidCraft history feature, so configuration suppression can target the complete cut.
The panel-pin pass-through is intentionally stepped:
- rear relief: Ø4.5 mm;
- core: Ø3.7 mm;
- front relief: Ø4.5 mm.
The profile is authored on an XY Sketch whose Z offset is the symbolic
axis_z parameter. The revolve uses:
AxisLine(Axis.Y, origin=(self.axis_x, 0, self.axis_z))Both the Sketch plane and revolve axis therefore follow the same native
parameter at Z, while the profile and axis X position follow axis_x.
The active Cut configuration keeps the revolve feature enabled. The saved
.sc is reopened and switched to Suppressed; SolidCraft suppresses the
single revolve feature and the body volume increases. Switching does not branch
Python and does not leave separate relief cylinders behind.
Generated command sequence — scpf (15)
parameters.add{ "command": "parameters.add", "params": { "expression": "3", "name": "axis_z", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "8", "name": "axis_x", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "4.5", "name": "relief_d", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "3.7", "name": "core_d", "unit": "mm" } }solid.box{ "command": "solid.box", "params": { "body_name": "ShiftedAxisRevolve", "center": [ 0, 0, 0 ], "height": 20, "length": 40, "width": 24 } }sketch.create{ "command": "sketch.create", "params": { "name": "Stepped pass through", "offset": "axis_z", "plane": "XY" } }sketch.line{ "command": "sketch.line", "params": { "closed": true, "ids": [ "a", "b", "c", "d", "e", "f", "g", "h" ], "points": [ [ "axis_x", -12 ], [ "axis_x + (relief_d / 2)", -12 ], [ "axis_x + (relief_d / 2)", -9 ], [ "axis_x + (core_d / 2)", -9 ], [ "axis_x + (core_d / 2)", 9 ], [ "axis_x + (relief_d / 2)", 9 ], [ "axis_x + (relief_d / 2)", 12 ], [ "axis_x", 12 ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.revolve{ "bind": { "$config_name_1": "name" }, "command": "solid.revolve", "params": { "angle": 360, "axis": { "dir": [ 0.0, 1.0, 0.0 ], "origin": [ "axis_x", 0, "axis_z" ] }, "operation": "cut", "sketch": "Stepped pass through", "targets": [ "ShiftedAxisRevolve" ] } }config.configure{ "command": "config.configure", "params": { "features": [ "$config_name_1" ] } }config.row{ "bind": { "$config_row_1f45f02561f4": { "field": "rows", "select": "id", "where": { "name": "Cut" } } }, "command": "config.row", "params": { "name": "Default", "rename": "Cut" } }config.row{ "command": "config.row", "params": { "name": "Cut", "values": { "suppress:$config_name_1": "false" } } }config.row{ "bind": { "$config_row_435c78310f60": { "field": "rows", "select": "id", "where": { "name": "Suppressed" } } }, "command": "config.row", "params": { "name": "Suppressed", "values": { "suppress:$config_name_1": "true" } } }config.activate{ "command": "config.activate", "params": { "row": "$config_row_1f45f02561f4" } }config.table{ "command": "config.table", "params": {} }
Reference code
No independent implementation is declared.
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 |
| SolidCraft parameters / axis_x | 8 | 8 | pass |
| SolidCraft parameters / axis_z | 3 | 3 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / axis_x | 8 | 8 | pass |
| SolidCraft parameters / axis_z | 3 | 3 | pass |
Model stages
- Author a parameter-driven XY profile on the axis Z plane
- Revolve around one typed AxisLine parallel to world Y
- Apply the complete stepped pass-through as one native cut feature
- Switch the saved configuration to suppress and restore that exact feature
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 · verification
scpf
native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "bce66c4cad9fa5065bc3048767d307b128db695e7caa918adeea06f96ef23e1c",
"size": 2672
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"parameters": {
"actual": {
"axis_x": 8.0,
"axis_z": 3.0
},
"expected": {
"axis_x": 8.0,
"axis_z": 3.0
},
"label": "SolidCraft parameters",
"pass": true
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/suppressed/model.sc",
"sha256": "156f3772e3968ed24753530a0f0ef2fc28fd16ee3b5050715fde936fd2d1186b",
"size": 5470
},
{
"kind": "file",
"path": "saved_designs/suppressed/measurements.json",
"sha256": "0302e1bd419b7279d76c6a0534d6d90e729ffa485dc0ae9b16f82d653c119047",
"size": 2584
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"changes": [
{
"comparison": {
"actual": {
"absolute_delta": 288.96369227718606,
"baseline": 18911.036307722818,
"mutated": 19200.000000000004
},
"expected": {
"absolute_delta_gt": 10.0
},
"label": "SolidCraft saved design change whole-revolve-cut",
"pass": true
},
"id": "whole-revolve-cut",
"path": [
"bodies",
0,
"volume_mm3"
]
}
],
"parameters": {
"actual": {
"axis_x": 8.0,
"axis_z": 3.0
},
"expected": {
"axis_x": 8.0,
"axis_z": 3.0
},
"label": "SolidCraft parameters",
"pass": true
}
},
"id": "saved_design_suppressed",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/table/results.json",
"sha256": "bb157b080081f9d6453c494968dc89494e58fd6495d83d93fa012a35831ec52d",
"size": 615
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": 2,
"expected": 2,
"label": "SolidCraft inspection check rows",
"pass": true
},
"id": "rows",
"path": [
0,
"rows"
]
},
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check columns",
"pass": true
},
"id": "columns",
"path": [
0,
"columns"
]
},
{
"comparison": {
"actual": "Cut",
"expected": "Cut",
"label": "SolidCraft inspection check active",
"pass": true
},
"id": "active",
"path": [
0,
"active"
]
},
{
"comparison": {
"actual": true,
"expected": true,
"label": "SolidCraft inspection check matches",
"pass": true
},
"id": "matches",
"path": [
0,
"matches"
]
}
]
},
"id": "inspection_table",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/revolve-axis/results.json",
"sha256": "6bb1eb7f57015b5bc7045189e0961129fc050e5dee5e519a85febf26aaa0dbaf",
"size": 798
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": "axis_x",
"expected": "axis_x",
"label": "SolidCraft inspection check axis-x",
"pass": true
},
"id": "axis-x",
"path": [
0,
"definition",
"axis",
"origin",
0
]
},
{
"comparison": {
"actual": "axis_z",
"expected": "axis_z",
"label": "SolidCraft inspection check axis-z",
"pass": true
},
"id": "axis-z",
"path": [
0,
"definition",
"axis",
"origin",
2
]
},
{
"comparison": {
"actual": [
0.0,
1.0,
0.0
],
"expected": [
0.0,
1.0,
0.0
],
"label": "SolidCraft inspection check axis-dir",
"pass": true
},
"id": "axis-dir",
"path": [
0,
"definition",
"axis",
"dir"
]
},
{
"comparison": {
"actual": "line",
"expected": "line",
"label": "SolidCraft inspection check axis-type",
"pass": true
},
"id": "axis-type",
"path": [
0,
"definition",
"axis",
"type"
]
},
{
"comparison": {
"actual": "cut",
"expected": "cut",
"label": "SolidCraft inspection check operation",
"pass": true
},
"id": "operation",
"path": [
0,
"definition",
"operation"
]
}
]
},
"id": "inspection_revolve-axis",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/shifted-axis-revolve/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "shifted-axis-revolve"
}