Skip to content
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

Verified scpf Two 40 × 30 × 3 mm leaves; 60° initial angle; 0–180° limits

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.

Expected setup

No declared setup diagram is available.

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)

Open published command JSON

  1. component.create

    {
      "bind": {
        "$fixed": "occurrence"
      },
      "command": "component.create",
      "params": {
        "grounded": true,
        "name": "Leaf"
      }
    }
  2. solid.box

    {
      "command": "solid.box",
      "params": {
        "body_name": "Leaf",
        "center": [
          0,
          0,
          0
        ],
        "height": 3.0,
        "length": 40.0,
        "width": 30.0
      }
    }
  3. component.activate

    {
      "command": "component.activate",
      "params": {
        "component": "root"
      }
    }
  4. occurrence.copy

    {
      "bind": {
        "$moving": "occurrence"
      },
      "command": "occurrence.copy",
      "params": {
        "component": "Leaf"
      }
    }
  5. occurrence.move

    {
      "command": "occurrence.move",
      "params": {
        "occurrence": "$moving",
        "translate": [
          0,
          30.0,
          0.0
        ]
      }
    }
  6. 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
        ]
      }
    }
  7. 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
MeasurementExpectedMeasuredCheck
SolidCraft body count22pass
native / inspection_jointpass
native / inspection_drive_120pass

Model stages

  1. Build one reusable leaf definition with named hinge-axis frames
  2. Create fixed and moving occurrences
  3. Create native revolute joint Hinge at the shared X axis
  4. Inspect native type, value and limits
  5. 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

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"
}

Published files