Skip to main content

loadpath

Generative design for 3D printed parts (and cast or milled ones), built to be driven by coding agents. Tell your agent what you want to build. It works out the engineering from there: where the part mounts, what it has to carry, which bores, bolt patterns and clearances must survive, and how it will be made. loadpath grows the part with topology optimization, meshes it as a watertight solid with the interfaces cut exactly, and checks that mesh with a fresh finite element analysis. You get an STL, 3MF or STEP and a report: mass, safety factor, deflection, thinnest member, whether every interface and clearance came through, printability, pass or fail.

Two robot-arm parts as loadpath delivered them (left) and their stress from a fresh analysis of that mesh (right), blue (none) to red (the part's 98th percentile), on the shape bent by the worst load case. Top: a wrist link between two servos, MJF nylon, 40.2 g, safety factor 5.8. Bottom: a servo cradle held only at its eight screw bosses, glass-filled SLS nylon, 17.3 g, safety factor 3.9. More in Examples.

Point your agent at it

pip install "loadpath[mcp]"
claude mcp add loadpath -- loadpath mcp   # any MCP client: {"command": "loadpath", "args": ["mcp"]}

Then ask in plain words:

I need a PETG bracket to hold a 10 kg shelf off the wall.

or hand it what you already have: a STEP of the part to lighten, a URDF of the arm the link goes in, a photo or sketch. The agent turns that into a study. It reads bores, bolt patterns and mounting faces out of CAD (loadpath_import_cad), derives joint loads from a URDF's masses and motor torques (loadpath assembly), sizes bolt clearance and driver paths from the fastener, and fills the gaps you didn't mention (screw size, spacing, a safety factor for the use) with stated assumptions you can correct. loadpath_check lints the setup before anything runs: missing or misspelled fields, a keep-out cutting into a mounting boss, a bore with no open end, a part glued down where it should be bolted. Then the agent runs it in the background and reads the report back, including whether every interface survived and every keep-out stayed clear. Its guide is loadpath/SKILL.md (the loadpath_guide tool returns it); the tools and the loop are in docs/agents.md. The server runs locally and nothing leaves the machine. Units are millimetres, newtons and megapascals. MIT licensed.

Where it fits

A designed part needs a shape, the loads it carries, and a way to make it. The open tools each cover one of those:

  • Topology optimization codes (top88, top3d, ToPy, FEniCS scripts) are research solvers. They stop at a density field on a grid: no printable part, and nothing checks the result.
  • Script CAD (CadQuery, build123d, OpenSCAD) and AI CAD tools draw exact geometry but don't know the loads.
  • Commercial generative design (Fusion, nTop) does the whole job, but it's built around a GUI, not an agent.

loadpath is the layer in between. The agent pulls the interfaces from CAD (or from your description), works out the loads, material and process, and loadpath returns a watertight part checked by an analysis independent of the optimizer, with a JSON report an agent can act on. Its STEP output goes back into CAD.

Where it is strongest:

  • The analysis behind the shape: buckling, fatigue and creep, large-deflection compliant mechanisms, loads of unknown direction, thermal loads and print warp, all checked on the delivered mesh.
  • Implicit modelling: field graphs, graded and conformal lattices (TPMS, strut, Voronoi), blends, and exact STEP of lattice parts.
  • Process awareness: FDM, SLS, MJF, resin and powder-bed metal rules, plus casting and milling constraints.
  • Heat exchangers: lattice-Boltzmann flow and conjugate heat transfer for gyroid cores and cold plates.

There is no GUI on purpose; it's a library.

What it does

  • Topology optimization on a voxel grid (SIMP with a density filter, Heaviside projection and a robust minimum-member formulation), searching for the lightest part that meets a safety factor and a deflection limit across several load cases. A stress-constrained mode (MMA) is available.
  • Verification of the delivered mesh, not the optimizer's density field: the STL is analysed again, on a tetrahedral mesh when the crosscheck extra is installed and on a fine voxel grid otherwise. Keep-out intrusion and lost interface geometry are measured with exact booleans.
  • Process rules for FDM (overhangs, bridges, layer bond), SLS and MJF (trapped powder, escape holes, warp-prone panels), resin (supports, peel, suction cups) and powder-bed metal (internal ceilings, powder clean-outs), plus milling and casting constraints.
  • Outcome exploration (loadpath explore): one study solved once per manufacturing method and material (FDM, SLS, MJF, resin, LPBF metal, cast, 2.5/3/5-axis milled), each a full verified run, ranked by mass, estimated cost and lead time with Pareto fronts and the cheapest method at each order quantity.
  • Field modelling: a part as a graph of implicit fields, so skins, lattices (TPMS and strut) and fillets can be graded by stress or by distance (docs/fields.md).
  • Other analyses: large deflection and buckling, compliant mechanisms, thermal loads, fatigue and creep estimates, lattice crush and impact, vibration, lattice-Boltzmann flow and conjugate heat for heat exchangers and cold plates, and layer-by-layer warp and residual stress (docs/BUILDSIM.md).
  • CAD in and out: a STEP or STL part becomes a draft study with its bores and bolt patterns found (docs/IMPORT.md); results export as STL, 3MF, and STEP with exact planes and cylinders at the interfaces; a lattice part (strut cells, TPMS, graded, skinned or open) goes to STEP lattice and all, as smooth patches on its true surface (docs/fields.md).
  • Mesh checks without a study (loadpath.checks): wall thickness, overhangs, trapped voids, fluid-network isolation, component fit.

How much to trust it

Read docs/VALIDATION.md before relying on a number. In short:

  • The solvers match analytic answers in the test suite: beam deflection within 3-5%, stress at a hole within about 13%, Lamé pressure vessels within 5-11%, Poiseuille flow exactly.
  • The structural check is cross-checked: CalculiX and loadpath's own tetrahedral solver agree within 0.1% on the same mesh. The voxel check reads 24-49% higher stress than the tet check, so it errs safe.
  • The optimizer is benchmarked: 1-5% less stiff than top88 and top3d at equal material on three of their textbook problems, stiffer on the fourth.
  • Printed lattices match published tests: against 33 published compression tests of printed lattices, the stiffness check has a median error of 1.23x (held out) and the strength check stays under the measured value on all 33.
  • Warp prediction is fitted to measured data (NIST AM-Bench 2018 for LPBF IN625, a published ABS study for FDM) and misses other alloys and materials by 30-60%.
  • Everything else is simulation only, including every part mass and safety factor in the case studies. The analysis is linear elastic with datasheet material values; printed parts vary with the printer.

Case studies

Each states the problem, the setup, the numbers against a named baseline, and the limitations (docs/case-studies/).

Case study Result Baseline
Eval suite 15 of 15 parts meet their requirements on a fresh analysis of the delivered mesh Each part's own requirements
Robot arm A load sweep over the arm's URDF found 3 of 5 links below SF 1; the regrown set meets SF 2 and is 18% smaller The robot arm's committed parts, made by an earlier loadpath with hand-written loads
Arm link cores 42.2 g box section for FDM, 36.8 g hollow link for SLS, both at 0.5 mm and SF 3 54.9 g solid web; 54.2 g free-form topology optimization
Liquid cold plate A die-graded gyroid ties streamline channels; channels filled with a graded gyroid run 7% cooler Streamline channels and pin fins, equal metal and pressure drop
TPU finger up to 8 mm of tip curl for a 5 mm pull; a tendon finger grips 8x harder A linear-model design (2.5 mm, then the solve fails); a plain bar of equal volume
Benchmarks 1-5% less stiff than top88/top3d at equal material, in 57-60 iterations instead of 130-410 Ports of top88 and top3d

Command line and Python

loadpath examples shelf-bracket > bracket.json
loadpath check bracket.json            # every problem at once, with suggestions
loadpath run bracket.json --out out/   # optimize, mesh, verify, render

out/ gets an STL and a render per outcome and report.json. Every command takes --quick for a first look in a minute or two.

Optional extras: crosscheck (tetrahedral verification; recommended), render, step (STEP in and out, OpenCascade), flow (lattice-Boltzmann, numba), gpu (PyTorch for large grids on CUDA, Apple Silicon or CPU threads).

Studies are validated against a published JSON Schema (schema/), and loadpath check returns every problem at once with its JSON path, so an agent can fix a study in one round trip. Long solves run as background jobs the agent polls. Each finished outcome has an attention list of numbers to look at before trusting it, and renders a vision model can inspect.

From Python:

from loadpath.spec import study_from_dict
from loadpath.study import run_study

result = run_study(study_from_dict(study))
best = result.outcomes[result.best]
best.mesh.export("part.stl")
print(best.report["mass"], best.report["safetyFactor"])

Documentation

Examples

The eval suite (15/15 passing): robot-arm links, brackets, a bell crank and a hook, each optimized and then checked by a fresh analysis of the delivered mesh. "Under envelope" compares with the design space filled solid, not with a conventionally designed part. These are simulated results; see docs/VALIDATION.md. Blue arrows are loads, red is keep-out. Every view, stress map and number is in docs/GALLERY.md.


arm-link
55.3 g · 56% under envelope · SF 8.92 · pass

arm-link-cast
67.8 g · 46% under envelope · SF 20.11 · pass

arm-link-driven
48.4 g · 61% under envelope · SF 11.17 · pass

bell-crank
23.4 g · 84% under envelope · SF 3.22 · pass

robot-turret
140.4 g · 91% under envelope · SF 2.85 · pass

robot-upper-arm
207.7 g · 88% under envelope · SF 7.33 · pass

robot-wrist-link-mjf
40.2 g · 95% under envelope · SF 5.83 · pass

robot-wrist-yoke
17.3 g · 93% under envelope · SF 3.88 · pass

mbb-beam
13.8 g · 79% under envelope · SF 1.51 · pass

motor-mount
27.6 g · 69% under envelope · SF 3.65 · pass

printed-hook
24.2 g · 84% under envelope · SF 2.73 · pass

wall-bracket
26.9 g · 94% under envelope · SF 2.85 · pass

wall-bracket-fasteners
26.5 g · 94% under envelope · SF 2.57 · pass

Where the load goes: von Mises stress, blue (none) to red (the part's 98th percentile), on the part bent by its worst load case:


bell-crank

robot-upper-arm

printed-hook

Two-fluid heat exchangers: two isolated channel networks through one sheet gyroid, with headers that print without support.

box-crossflow

Printed in metal, nothing inside can be supported: the channels end in peaked roofs instead of flat ceilings (red).

metal ceilings

Made another way: the same arm link printed, cast (no undercuts along z), 3-axis milled from both sides with a 6 mm cutter, and with members capped at 6 mm. Each meets SF 3 and 0.5 mm.

manufacturing constraints

Rendered 2026-11-03 from 6c97b57 by python docs/gallery.py.

Limits

  • Linear elastic, small deflection in the main check; large deflection and buckling are separate analyses (nonlinear.py), with contact (rigid obstacles and self contact, optionally with Coulomb friction) and tendons there only.
  • Printed layers are modelled as transversely isotropic stiffness plus a tension-across-layers strength check. Interlayer shear is not checked separately.
  • Material cards are datasheet values until you calibrate your printer (loadpath calibrate).
  • Results depend on the grid: mass at a target safety factor moves about 5% with small changes of grid size or starting point.
  • Pure Python with NumPy and SciPy. A 40,000-cell study takes a few minutes on one laptop core; a safety-factor search runs several of those, and the larger eval parts take 15-60 minutes on four cores.

Tests

python tests/run_tests.py && python tests/test_loadpath.py        # core
python tests/test_tutorials.py                                    # every tutorial, quick mode
python -m loadpath.evals.run --tier coarse --corpus 6 \
    --baseline loadpath/evals/baselines/coarse.json --gate regressions   # under 30 min
python -m loadpath.evals.run --out evals-out/                     # full eval suite, hours
python -m loadpath.benchmarks.run --out bench-out/                # top88 / top3d benchmarks
python docs/gallery.py --evals evals-out/                         # refresh the Examples renders

.github/workflows/tests.yml lists the full set CI runs.

License

MIT

Metadata

Release files for loadpath 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loadpath 0.1.5
File Size Uploaded Provenance Actions
loadpath-0.1.5.tar.gz 1.7 MB With provenance Details for loadpath-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loadpath 0.1.5
File Interpreter ABI Platform Actions
loadpath-0.1.5-py3-none-any.whl Python 3 none any Details for loadpath-0.1.5-py3-none-any.whl

Total release size: 3.2 MB

Release files / loadpath-0.1.5.tar.gz

Download URL loadpath-0.1.5.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
49ac4dfd938877f073ac681468e3db2381f062aa656175677b80fb0e29136b5d
BLAKE2b-256 checksum
How to use checksums
3592314fc60601706a3a90ffef3fc3c0911cbea802d88716cba3bc504fd94f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / loadpath-0.1.5-py3-none-any.whl

Download URL loadpath-0.1.5-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cdfc961243ef06247abedb2cb3ed4e4b30678bf02436fbc447a5d28c83d43a90
BLAKE2b-256 checksum
How to use checksums
a32b6003f786b69abc3eccdf5809782a9de57876bdb0cf0934aaabc0744ed65b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for loadpath 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for loadpath-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page