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

Primitive CSG

Direct primitives and Boolean operators form one native CSG result

Verified scpf Sphere R20; 30 mm Box extension; Ø8 X-axis bore; 50 mm clipping Box

What this verifies

Sphere, Box and X-axis Cylinder primitives are translated and combined with union, subtraction and intersection independently of feature-history modelling.

Expected setup

Primitive CSG expected setup diagram

Published scpf baseline: declared expected body envelopes. Conceptual projection, not verification output.

scpf source

Complete primary source from the site branch; built revision below.

scpf/model.py
"""Core CSG qualification: primitives, transforms and Boolean operations."""


class PrimitiveCsg:
    def build(self):
        body = Sphere(20)
        body = body + Box(30, 30, 20).move(x=18, z=10)

        # Native principal-axis Cylinder, centered by default.
        bore = Cylinder(d=8, h=60, axis=Axis.X)
        body = body - bore

        clip = Box(50, 50, 30).move(z=15)
        return body & clip


PrimitiveCsg()

Engineering explanation

Primitive CSG

Documentation provenance: the engineering text below is copied verbatim from the last canonical qualification/cases.py source before its removal, commit be40b09e7454a90e87d83768a9e7453c52ba5d76. Machine verification lives in verification/solidcraft.py.

Legacy group: fundamentals

Goal

Qualify direct primitive/CSG modelling independently of feature-history geometry: Sphere and Box union, translated primitives, one native X-axis Cylinder cut and intersection.

Forge API

Sphere(); Box(…).move(…); Cylinder(…, axis=Axis.X).at(…); + / - / &

Forge model

A Shape CSG tree rooted in Sphere so Forge deliberately selects the direct CSG compiler instead of the feature-history Box compiler.

How Forge builds it in SolidCraft

solid.sphere(new), solid.box(join), one X-axis solid.cylinder(cut), then solid.box(intersect).

SolidCraft result

SolidCraft accepts the complete CSG command path, produces one valid clipped body and evaluates the native timeline without errors.

Saved-design test

No saved-design mutation in this case; it isolates primitive CSG lowering. Parametric edits are covered by dedicated saved-design cases.

Geometry evidence

Geometry-rationale provenance: copied verbatim from qualification/geometry_contracts.py at commit be40b09e7454a90e87d83768a9e7453c52ba5d76.

Bounds sufficient: false

Many different Boolean results can share this envelope. Surface probes must prove the surviving sphere, bore, clipped box and unioned extension.

Reference notes

  • OpenSCAD — Closest to ordinary union()/difference()/intersection() with translate()/rotate() around primitives.
  • PythonSCAD — Useful comparison for Python objects and operators while Forge still delegates all geometry to SolidCraft.
Generated command sequence — scpf (4)

Open published command JSON

  1. solid.sphere

    {
      "command": "solid.sphere",
      "params": {
        "body_name": "PrimitiveCsg",
        "center": [
          0,
          0,
          0
        ],
        "operation": "new",
        "radius": 20
      }
    }
  2. solid.box

    {
      "command": "solid.box",
      "params": {
        "center": [
          18.0,
          0.0,
          10.0
        ],
        "height": 20,
        "length": 30,
        "operation": "join",
        "targets": [
          "PrimitiveCsg"
        ],
        "width": 30
      }
    }
  3. solid.cylinder

    {
      "command": "solid.cylinder",
      "params": {
        "axis": "X",
        "base": [
          -30.0,
          0,
          0
        ],
        "diameter": 8,
        "height": 60,
        "operation": "cut",
        "targets": [
          "PrimitiveCsg"
        ]
      }
    }
  4. solid.box

    {
      "command": "solid.box",
      "params": {
        "center": [
          0.0,
          0.0,
          15.0
        ],
        "height": 30,
        "length": 50,
        "operation": "intersect",
        "targets": [
          "PrimitiveCsg"
        ],
        "width": 50
      }
    }

Reference code

cadquery source · pass

cadquery/model.py
"""CadQuery reference for primitive union, difference and intersection."""

import cadquery as cq


sphere = cq.Solid.makeSphere(20)
box = cq.Solid.makeBox(30, 30, 20, cq.Vector(3, -15, 0))
body = sphere.fuse(box)

bore = cq.Workplane("YZ").circle(4).extrude(60, both=True).val()
body = body.cut(bore)

clip = cq.Solid.makeBox(50, 50, 30, cq.Vector(-25, -25, 0))
result = body.intersect(clip)

model = cq.Assembly()
model.add(result, name="csg")
Published reference result

Independent implementation result.

build123d source · pass

build123d/model.py
"""build123d reference: Builder-mode union, subtraction and intersection."""
from build123d import Box, BuildPart, Cylinder, Locations, Mode, Rot, Sphere

with BuildPart() as model:
    Sphere(20)

    with Locations((18, 0, 10)):
        Box(30, 30, 20)

    with Locations(Rot(0, 90, 0)):
        Cylinder(4, 120, mode=Mode.SUBTRACT)

    with Locations((0, 0, 15)):
        Box(50, 50, 30, mode=Mode.INTERSECT)
Published reference result

Independent implementation result.

pythonscad source · pass

pythonscad/model.py
"""PythonSCAD reference for the primitive CSG qualification."""

from pythonscad import *

body = sphere(r=20)
body = body | cube([30, 30, 20], center=True).translate([18, 0, 10])

bore = cylinder(d=8, h=60).rotate([0, 90, 0]).translate([-30, 0, 0])
body = body - bore

clip = cube([50, 50, 30], center=True).up(15)
model = body & clip
Published reference result

Independent implementation result.

pybosl2 source · pass

pybosl2/model.py
"""pyBOSL2 reference for primitive union, difference and intersection."""

from pybosl2 import cuboid, sphere, xcyl

body = sphere(radius=20)
body = body | cuboid([30, 30, 20]).translate([18, 0, 10])

bore = xcyl(diameter=8, height=60)
body = body - bore

clip = cuboid([50, 50, 30]).up(15)
model = body & clip
Published reference result

Independent implementation result.

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

pass

Regression: pass · expected shape: pass

Primitive CSG Actual visual verification
Actual
Primitive CSG Goal visual verification
Goal
Primitive CSG Overlay visual verification
Overlay
Primitive CSG Diff visual verification
Diff

right

pass

Regression: pass · expected shape: pass

Primitive CSG Actual visual verification
Actual
Primitive CSG Goal visual verification
Goal
Primitive CSG Overlay visual verification
Overlay
Primitive CSG Diff visual verification
Diff

iso

pass

Regression: pass · expected shape: pass

Primitive CSG Actual visual verification
Actual
Primitive CSG Goal visual verification
Goal
Primitive CSG Overlay visual verification
Overlay
Primitive CSG Diff visual verification
Diff

Image overview

Only images present in the published build are displayed. Presentation previews are not visual verification results.

Verification checks

scpf — pass

geometry / geometrypass
MeasurementExpectedMeasuredCheck
Bounds / max25 × 20 × 2025 × 19.9991035461 × 20pass
Bounds / min-19.5959179423 × -20 × 0-19.5959186554 × -19.9991035461 × -1.24596513662e-15pass
Watertighttruetruepass
native / baselinepass
MeasurementExpectedMeasuredCheck
SolidCraft body count11pass
Body envelopes / count11pass
Body 1 / min [mm]-19.5959179423 × -20 × 0-19.5959179423 × -20 × -2.49193027324e-15—
Body 1 / max [mm]25 × 20 × 2025 × 20 × 20—
visual / frontpass
visual / rightpass
visual / isopass

cadquery — pass

geometry / geometrypass
MeasurementExpectedMeasuredCheck
Bounds / max25 × 20 × 2025 × 19.9940128326 × 20pass
Bounds / min-19.5959179423 × -20 × 0-19.5959186554 × -19.9940128326 × 0pass
Watertighttruetruepass

build123d — pass

geometry / geometrypass
MeasurementExpectedMeasuredCheck
Bounds / max25 × 20 × 2025 × 19.9940128326 × 20pass
Bounds / min-19.5959179423 × -20 × 0-19.5959186554 × -19.9940128326 × -6.83481049535e-16pass
Watertighttruetruepass

pythonscad — pass

geometry / geometrypass
MeasurementExpectedMeasuredCheck
Bounds / max25 × 20 × 2025 × 19.8904379074 × 20pass
Bounds / min-19.5959179423 × -20 × 0-19.5917996112 × -19.8904379074 × 0pass
Watertighttruetruepass

pybosl2 — pass

geometry / geometrypass
MeasurementExpectedMeasuredCheck
Bounds / max25 × 20 × 2025 × 19.8904380798 × 20pass
Bounds / min-19.5959179423 × -20 × 0-19.5917987823 × -19.8904380798 × 0pass
Watertighttruetruepass

Model stages

  1. Create and union the Sphere and translated Box
  2. Subtract the centered X-axis Cylinder bore
  3. Intersect the result with the clipping Box

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 · verification
    • native: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
    • visual: 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

verification.json
{
  "checks": [
    {
      "artifacts": [],
      "error": null,
      "evidence": {
        "bounds": {
          "actual_max": [
            25.0,
            19.999103546142578,
            20.0
          ],
          "actual_min": [
            -19.595918655395508,
            -19.999103546142578,
            -1.2459651366203417e-15
          ],
          "expected_max": [
            25.0,
            20.0,
            20.0
          ],
          "expected_min": [
            -19.595917942265423,
            -20.0,
            0.0
          ],
          "max_delta_mm": 0.000896453857421875,
          "pass": true,
          "tolerance_mm": 0.5
        },
        "surface_distance_probes": [
          {
            "actual_mm": 5.856825925431234,
            "delta_mm": 0.0010384508378153967,
            "expected_mm": 5.857864376269049,
            "label": "surviving sphere interior",
            "pass": true,
            "point": [
              -10.0,
              0.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.99871136046117,
            "delta_mm": 0.001288639538830072,
            "expected_mm": 3.0,
            "label": "cylindrical bore",
            "pass": true,
            "point": [
              0.0,
              0.0,
              1.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.0,
            "delta_mm": 0.0,
            "expected_mm": 2.0,
            "label": "clip plane at x=25",
            "pass": true,
            "point": [
              27.0,
              10.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 1.0,
            "delta_mm": 0.0,
            "expected_mm": 1.0,
            "label": "unioned box extension",
            "pass": true,
            "point": [
              23.0,
              14.0,
              10.0
            ],
            "tolerance_mm": 0.3
          }
        ],
        "watertight": {
          "actual": true,
          "expected": true,
          "pass": true
        }
      },
      "id": "geometry",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/scpf/model.stl",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg-scpf-geometry"
}
native — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "baseline/measurements.json",
          "sha256": "8d4c6745619fdc8b1d478b61b416319b2c446965d8f49331558f829cd9d90903",
          "size": 2016
        }
      ],
      "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": "PrimitiveCsg",
                "max": [
                  25.000000000000004,
                  20.0,
                  20.0
                ],
                "min": [
                  -19.595917942265448,
                  -20.0,
                  -2.4919302732406834e-15
                ]
              },
              "expected": {
                "label": null,
                "max": [
                  25.0,
                  20.0,
                  20.0
                ],
                "min": [
                  -19.595917942265423,
                  -20.0,
                  0.0
                ]
              },
              "max_delta": 2.4868995751603507e-14
            }
          ],
          "pass": true,
          "tolerance": 0.01,
          "unmatched_actual": [],
          "unmatched_expected": []
        },
        "named_bodies": [
          {
            "face_type_counts": {
              "actual": {
                "cylinder": 1,
                "sphere": 1
              },
              "expected": {
                "cylinder": 1,
                "sphere": 1
              },
              "label": "sole body face type counts",
              "pass": true
            },
            "selector": "sole"
          }
        ]
      },
      "id": "baseline",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/scpf/model.sc",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg"
}
visual — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "visual/front/camera.json",
          "sha256": "6f5b96f413479bcbddc1041c7fd2d61f61b2b0b1c25e0079713a7692a2af50d8",
          "size": 168
        },
        {
          "kind": "file",
          "path": "visual/front/actual.png",
          "sha256": "f3b79a1d6e852b2c18835b12330caef0516fe6405726302b76976e9e6f8a49e5",
          "size": 49277
        },
        {
          "kind": "file",
          "path": "visual/front/goal.png",
          "sha256": "d88ae013ee79679c9dcdfafcd361dbf63ed7a24c2a3b3fa1f6a9786dd0bcfdfd",
          "size": 1988
        },
        {
          "kind": "file",
          "path": "visual/front/overlay.png",
          "sha256": "3d3f752b61c3d06bb90c51a5eda779f8f7e047ef456fb9979e3676cc0eab3712",
          "size": 23484
        },
        {
          "kind": "file",
          "path": "visual/front/diff.png",
          "sha256": "1dd2a43e7196117bb7cf3ec867c633346b8444fc41f371c4ad4c2964b8edb725",
          "size": 2367
        }
      ],
      "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.016204,
          "changed_pixel_threshold": 12,
          "max_changed_fraction": 0.08,
          "max_mean_difference": 6.0,
          "mean_absolute_difference": 0.581887,
          "pass": true
        },
        "regression_required": true,
        "view": "front"
      },
      "id": "front",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "visual/right/camera.json",
          "sha256": "4dcc7141836340d955ccb685ba74a9a35d2f015958fbd96c637a9acbbd7b7461",
          "size": 184
        },
        {
          "kind": "file",
          "path": "visual/right/actual.png",
          "sha256": "cd801cd07c1fc0e61c8b206c56f04b63be36de870320c738dda513a1a6edba7f",
          "size": 19179
        },
        {
          "kind": "file",
          "path": "visual/right/goal.png",
          "sha256": "99b2bae503eda75ec7347ddfa5f15479db6693421cb965666bd0d9e43520ae5d",
          "size": 1986
        },
        {
          "kind": "file",
          "path": "visual/right/overlay.png",
          "sha256": "bbcd2972a41bcfa3d1f3d0467df19e96c538346a9bdb65d9f848858052dac5fa",
          "size": 10945
        },
        {
          "kind": "file",
          "path": "visual/right/diff.png",
          "sha256": "8a72375a99dcf22d180f263e79172c9cdaffeada69b221daa26c06eb155bbf52",
          "size": 1823
        }
      ],
      "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.02228,
          "changed_pixel_threshold": 12,
          "max_changed_fraction": 0.08,
          "max_mean_difference": 6.0,
          "mean_absolute_difference": 0.736256,
          "pass": true
        },
        "regression_required": true,
        "view": "right"
      },
      "id": "right",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "visual/iso/camera.json",
          "sha256": "0313c8e4237196e6bb5feeed205ff7fc5b4d0a474d0f41ab701d2b1c9c1a305d",
          "size": 199
        },
        {
          "kind": "file",
          "path": "visual/iso/actual.png",
          "sha256": "8890dc8a32b1a0fc26845d8b59466e419eb9ab986ebd891fee5539fb16d6ad68",
          "size": 62052
        },
        {
          "kind": "file",
          "path": "visual/iso/goal.png",
          "sha256": "3a2123d2b233b87e6429dc967311f773bfe696c04edf3c46a7c78b4d9ee0813c",
          "size": 4477
        },
        {
          "kind": "file",
          "path": "visual/iso/overlay.png",
          "sha256": "215313478050cb19b829c2148359e7ba518f983c335dc88e4795ab8c21441cef",
          "size": 41232
        },
        {
          "kind": "file",
          "path": "visual/iso/diff.png",
          "sha256": "ded47fb6a740eff50f228eb91ae90b772d6030c524b7cddef56a3521851eded8",
          "size": 4663
        }
      ],
      "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.034578,
          "changed_pixel_threshold": 12,
          "max_changed_fraction": 0.08,
          "max_mean_difference": 6.0,
          "mean_absolute_difference": 1.42853,
          "pass": true
        },
        "regression_required": true,
        "view": "iso"
      },
      "id": "iso",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/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": "8acad149cdaaef729c2cd6f6929b9c73bf785ec8",
      "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": "primitive-csg-scpf-visual"
}

cadquery

geometry — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [],
      "error": null,
      "evidence": {
        "bounds": {
          "actual_max": [
            25.0,
            19.9940128326416,
            20.0
          ],
          "actual_min": [
            -19.595918655395508,
            -19.9940128326416,
            0.0
          ],
          "expected_max": [
            25.0,
            20.0,
            20.0
          ],
          "expected_min": [
            -19.595917942265423,
            -20.0,
            0.0
          ],
          "max_delta_mm": 0.0059871673583984375,
          "pass": true,
          "tolerance_mm": 0.5
        },
        "surface_distance_probes": [
          {
            "actual_mm": 5.842979404215853,
            "delta_mm": 0.014884972053195611,
            "expected_mm": 5.857864376269049,
            "label": "surviving sphere interior",
            "pass": true,
            "point": [
              -10.0,
              0.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.9987566471099854,
            "delta_mm": 0.0012433528900146484,
            "expected_mm": 3.0,
            "label": "cylindrical bore",
            "pass": true,
            "point": [
              0.0,
              0.0,
              1.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.0,
            "delta_mm": 0.0,
            "expected_mm": 2.0,
            "label": "clip plane at x=25",
            "pass": true,
            "point": [
              27.0,
              10.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 1.0,
            "delta_mm": 0.0,
            "expected_mm": 1.0,
            "label": "unioned box extension",
            "pass": true,
            "point": [
              23.0,
              14.0,
              10.0
            ],
            "tolerance_mm": 0.3
          }
        ],
        "watertight": {
          "actual": true,
          "expected": true,
          "pass": true
        }
      },
      "id": "geometry",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/cadquery/model.stl",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg-cadquery-geometry"
}

build123d

geometry — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [],
      "error": null,
      "evidence": {
        "bounds": {
          "actual_max": [
            25.0,
            19.9940128326416,
            20.0
          ],
          "actual_min": [
            -19.595918655395508,
            -19.9940128326416,
            -6.83481049534862e-16
          ],
          "expected_max": [
            25.0,
            20.0,
            20.0
          ],
          "expected_min": [
            -19.595917942265423,
            -20.0,
            0.0
          ],
          "max_delta_mm": 0.0059871673583984375,
          "pass": true,
          "tolerance_mm": 0.5
        },
        "surface_distance_probes": [
          {
            "actual_mm": 5.854360335756017,
            "delta_mm": 0.0035040405130315477,
            "expected_mm": 5.857864376269049,
            "label": "surviving sphere interior",
            "pass": true,
            "point": [
              -10.0,
              0.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.999449379471294,
            "delta_mm": 0.000550620528705803,
            "expected_mm": 3.0,
            "label": "cylindrical bore",
            "pass": true,
            "point": [
              0.0,
              0.0,
              1.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.0,
            "delta_mm": 0.0,
            "expected_mm": 2.0,
            "label": "clip plane at x=25",
            "pass": true,
            "point": [
              27.0,
              10.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 1.0,
            "delta_mm": 0.0,
            "expected_mm": 1.0,
            "label": "unioned box extension",
            "pass": true,
            "point": [
              23.0,
              14.0,
              10.0
            ],
            "tolerance_mm": 0.3
          }
        ],
        "watertight": {
          "actual": true,
          "expected": true,
          "pass": true
        }
      },
      "id": "geometry",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/build123d/model.stl",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg-build123d-geometry"
}

pythonscad

geometry — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [],
      "error": null,
      "evidence": {
        "bounds": {
          "actual_max": [
            25.0,
            19.890437907365467,
            20.0
          ],
          "actual_min": [
            -19.591799611167875,
            -19.890437907365467,
            0.0
          ],
          "expected_max": [
            25.0,
            20.0,
            20.0
          ],
          "expected_min": [
            -19.595917942265423,
            -20.0,
            0.0
          ],
          "max_delta_mm": 0.10956209263453331,
          "pass": true,
          "tolerance_mm": 0.5
        },
        "surface_distance_probes": [
          {
            "actual_mm": 5.750169919263279,
            "delta_mm": 0.10769445700576963,
            "expected_mm": 5.857864376269049,
            "label": "surviving sphere interior",
            "pass": true,
            "point": [
              -10.0,
              0.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.883767269704208,
            "delta_mm": 0.11623273029579195,
            "expected_mm": 3.0,
            "label": "cylindrical bore",
            "pass": true,
            "point": [
              0.0,
              0.0,
              1.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.0,
            "delta_mm": 0.0,
            "expected_mm": 2.0,
            "label": "clip plane at x=25",
            "pass": true,
            "point": [
              27.0,
              10.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 1.0,
            "delta_mm": 0.0,
            "expected_mm": 1.0,
            "label": "unioned box extension",
            "pass": true,
            "point": [
              23.0,
              14.0,
              10.0
            ],
            "tolerance_mm": 0.3
          }
        ],
        "watertight": {
          "actual": true,
          "expected": true,
          "pass": true
        }
      },
      "id": "geometry",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/pythonscad/model.stl",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg-pythonscad-geometry"
}

pybosl2

geometry — expected versus measured evidence

Open published verification report

verification.json
{
  "checks": [
    {
      "artifacts": [],
      "error": null,
      "evidence": {
        "bounds": {
          "actual_max": [
            25.0,
            19.890438079833984,
            20.0
          ],
          "actual_min": [
            -19.591798782348633,
            -19.890438079833984,
            0.0
          ],
          "expected_max": [
            25.0,
            20.0,
            20.0
          ],
          "expected_min": [
            -19.595917942265423,
            -20.0,
            0.0
          ],
          "max_delta_mm": 0.10956192016601562,
          "pass": true,
          "tolerance_mm": 0.5
        },
        "surface_distance_probes": [
          {
            "actual_mm": 5.750170081732606,
            "delta_mm": 0.10769429453644275,
            "expected_mm": 5.857864376269049,
            "label": "surviving sphere interior",
            "pass": true,
            "point": [
              -10.0,
              0.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.8837673664093018,
            "delta_mm": 0.11623263359069824,
            "expected_mm": 3.0,
            "label": "cylindrical bore",
            "pass": true,
            "point": [
              0.0,
              0.0,
              1.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 2.0,
            "delta_mm": 0.0,
            "expected_mm": 2.0,
            "label": "clip plane at x=25",
            "pass": true,
            "point": [
              27.0,
              10.0,
              10.0
            ],
            "tolerance_mm": 0.3
          },
          {
            "actual_mm": 1.0,
            "delta_mm": 0.0,
            "expected_mm": 1.0,
            "label": "unioned box extension",
            "pass": true,
            "point": [
              23.0,
              14.0,
              10.0
            ],
            "tolerance_mm": 0.3
          }
        ],
        "watertight": {
          "actual": true,
          "expected": true,
          "pass": true
        }
      },
      "id": "geometry",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/primitive-csg/pybosl2/model.stl",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "primitive-csg-pybosl2-geometry"
}

Published files