Development version.
Forge is under active development and testing. APIs, behaviour, coverage and
verification results may be incomplete or change without notice; published
PASS results are not a support guarantee or production-readiness claim.
Verification
Revolute Joint
Two reusable leaves connected by a native bounded revolute relationship
What this verifies
Qualifies Forge's public revolute attachment authoring against native SolidCraft. Two identical component occurrences share a hinge axis, start at 60 degrees, retain 0 to 180 degree limits and are driven to 120 degrees in saved-design verification.
scpf source
Complete primary source from the site branch; built revision below.
scpf/model.py
"""Qualification: native bounded revolute relationship."""
from scpf import AnchorFrame, Box, assembly, component
@component
class Leaf:
width = 40.0
depth = 30.0
thickness = 3.0
def anchors(self):
return {
"hinge_positive": AnchorFrame(
origin=(0, 15, 1.5),
z=(1, 0, 0),
x=(0, 0, 1),
),
"hinge_negative": AnchorFrame(
origin=(0, -15, 1.5),
z=(1, 0, 0),
x=(0, 0, 1),
),
}
def build(self):
return Box(self.width, self.depth, self.thickness)
@assembly
class RevoluteFixture:
def build(self):
fixed = Leaf(name="fixed")
moving = Leaf(name="moving").attach(
fixed,
parent="hinge_positive",
child="hinge_negative",
kind="revolute",
value=60,
limits=(0, 180),
flip=True,
name="Hinge",
)
return fixed + moving
RevoluteFixture()
Generated command sequence — scpf (7)
component.create{ "bind": { "$fixed": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Leaf" } }solid.box{ "command": "solid.box", "params": { "body_name": "Leaf", "center": [ 0, 0, 0 ], "height": 3.0, "length": 40.0, "width": 30.0 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.copy{ "bind": { "$moving": "occurrence" }, "command": "occurrence.copy", "params": { "component": "Leaf" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$moving", "translate": [ 0, 30.0, 0.0 ] } }joint.create{ "command": "joint.create", "params": { "a": { "occurrence": "$fixed", "point": [ 0.0, 15.0, 1.5 ], "x": [ 0.0, 0.0, 1.0 ], "z": [ 1.0, 0.0, 0.0 ] }, "b": { "occurrence": "$moving", "point": [ 0.0, 15.0, 1.5 ], "x": [ 0.0, 0.0, 1.0 ], "z": [ 1.0, 0.0, 0.0 ] }, "flip": true, "limits": [ [ 0.0, 180.0 ] ], "name": "Hinge", "type": "revolute", "values": [ 60.0 ] } }browser.visibility{ "command": "browser.visibility", "params": { "folder": "joints", "visible": false } }
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
native / baselinepass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 2 | 2 | pass |
native / inspection_jointpass
native / inspection_drive_120pass
Model stages
- Build one reusable leaf definition with named hinge-axis frames
- Create fixed and moving occurrences
- Create native revolute joint Hinge at the shared X axis
- Inspect native type, value and limits
- Drive Hinge from 60° to 120° and prove the moving body changes position
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
verification.json
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "4ac42ac06b9d78ee597a1c059d34ef8c6890a7867e6b160c57ed5bbb2ec6d935",
"size": 2118
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 2,
"expected": 2,
"label": "SolidCraft body count",
"pass": true
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/joint/results.json",
"sha256": "d320a5bd405fb6aeb37516c45410a21104b3e079089f11bb7cc9a2821584e658",
"size": 2474
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": "revolute",
"expected": "revolute",
"label": "SolidCraft inspection check type",
"pass": true
},
"id": "type",
"path": [
0,
"joints",
0,
"type"
]
},
{
"comparison": {
"actual": "Hinge",
"expected": "Hinge",
"label": "SolidCraft inspection check name",
"pass": true
},
"id": "name",
"path": [
0,
"joints",
0,
"name"
]
},
{
"comparison": {
"actual": 60.0,
"delta": 0.0,
"expected": 60.0,
"kind": "scalar",
"label": "SolidCraft inspection check value",
"pass": true,
"tolerance": 0.001
},
"id": "value",
"path": [
0,
"joints",
0,
"values",
0,
"value"
]
},
{
"comparison": {
"actual": "deg",
"expected": "deg",
"label": "SolidCraft inspection check unit",
"pass": true
},
"id": "unit",
"path": [
0,
"joints",
0,
"values",
0,
"unit"
]
},
{
"comparison": {
"actual": [
0.0,
180.0
],
"expected": [
0.0,
180.0
],
"label": "SolidCraft inspection check limits",
"pass": true
},
"id": "limits",
"path": [
0,
"joints",
0,
"values",
0,
"limits"
]
}
]
},
"id": "inspection_joint",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/drive_120/results.json",
"sha256": "9b02d851d358a9273a66766015779a43a1d2f52109a684da4a9ae2447feb3527",
"size": 780
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": true,
"expected": true,
"label": "SolidCraft inspection check moved",
"pass": true
},
"id": "moved",
"path": [
0,
"moved"
]
},
{
"comparison": {
"actual": 120.0,
"delta": 0.0,
"expected": 120.0,
"kind": "scalar",
"label": "SolidCraft inspection check value",
"pass": true,
"tolerance": 0.001
},
"id": "value",
"path": [
0,
"values",
0,
"value"
]
},
{
"comparison": {
"actual": "deg",
"expected": "deg",
"label": "SolidCraft inspection check unit",
"pass": true
},
"id": "unit",
"path": [
0,
"values",
0,
"unit"
]
},
{
"comparison": {
"actual": [
0.0,
180.0
],
"expected": [
0.0,
180.0
],
"label": "SolidCraft inspection check limits",
"pass": true
},
"id": "limits",
"path": [
0,
"values",
0,
"limits"
]
}
]
},
"id": "inspection_drive_120",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/revolute-joint/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "revolute-joint"
}