Skip to main content Switch to mobile version design3d 0.1.0 Python CAD modeler to design 3D models from code: B-Rep solids built, checked and exported to STEP and STL by a program, for AI agents, classic programming and design automation
pip install design3d==0.1.0 Copy PIP instructions
Python CAD from code, based on B-Rep, with STEP and STL import and export: ready for AI agents, programming and design automation
design3d is a Python CAD modeler based on Boundary Representation (B-Rep), made to design 3D models from code: models are built, checked by computation (distances, intersections, volumes) and exported to STEP or STL by a program, with no graphical interface to drive.
This is what makes it suited to agentic engineering: an AI agent writes the design logic in Python, runs it, checks the result, iterates, and exports a STEP file that opens in any CAD software. The same code works without an agent, in classic programming (scripts, notebooks, applications) and in design automation (configurators, families of parts, design studies run in CI pipelines).
A 63/20 kV substation designed on a real plot, its terminal towers at the real towers of the incoming lines. Every part is placed by code and every clearance is checked by code. Click the picture to open it in 3D.
The showcases are complete engineering designs, not modeling exercises: each one starts from requirements and reference data, derives the architecture by calculation, checks its constraints and iterates until they are satisfied. Their 3D views open in the browser, from design3d.app/showcases. They were written by a coding agent from a design brief, reviewed by an engineer, and show what an agent can build with design3d.
63/20 kV substation on real plots
The same outdoor substation is designed on three real plots of the Loire and Rhône (France), read from OpenStreetMap: a roomy one, a cramped one with two incoming lines, an odd shaped one with three. From the nominal voltages, the design derives the insulation levels and the clearances in air of IEC 61936-1, designs the post insulators for the pollution of the site, lays out each bay by iterations on its clearances, sizes the transformers from their rating, chooses the order of the bays by cost, and places the whole on the plot with the largest margin. Open in 3D: l'Horme, le Grand Verger, Sury-le-Comtal. About 5,100 lines of Python: scripts/showcases/substation.
Double-deck high-speed train
A trainset inspired by the Alstom TGV M, designed as a system architecture. The architecture allocates to each system an envelope, interfaces and a mass budget; each system (bogies, traction, air conditioning, staircases, carbody from its aluminium extrusions...) is designed in its envelope and reports the issues it cannot solve; the architecture changes its parameters and allocates again, until every system fits. The traction chain is sized from the performance requirements, the air conditioning from the heat balance of the car. Open in 3D: trainset, trailer architecture. About 7,100 lines of Python: scripts/showcases/high_speed_train.
A motorcycle with the dimensions of a 2015 Yamaha MT-125: a few architecture parameters (tyre sizes, wheelbase, steering geometry, swingarm) give the hardpoints, from which every part is built and placed. Open in 3D. About 1,100 lines of Python: scripts/showcases/motorcycle_design.py.
An agent designing with design3d works in a loop: write the design code, run it, check the result, fix, export. design3d gives it what each step needs:
Code only: a plain Python library with no graphical interface to drive. Models are built, queried and modified by code, and run headless in scripts, notebooks, CI pipelines or agent sandboxes.
Checks by computation: distances, intersections, volumes, point belonging and boolean operations let the agent verify its own work instead of trusting a picture.
Serialization: objects serialize to JSON (to_dict and SerializableObject.from_json), so models can be stored, compared and passed between tools.
Exchange: STEP and STL import and export bring the results into standard CAD software.
Visual review: babylonjs() opens the model in a web viewer with its scene tree, to show the result to a human.
Rich geometry: B-spline curves and surfaces, sweeps, lofts, revolutions and extrusions.
import design3d from design3d import primitives3d from design3d.core import VolumeModel def cube(center, side, name): return primitives3d.Block( design3d.Frame3D(center, side * design3d.X3D, side * design3d.Y3D, side * design3d.Z3D), name=name ) housing = cube(design3d.O3D, 0.5, "housing") part = cube(design3d.Point3D(0.6, 0.0, 0.0), 0.2, "part") # The agent checks its own design before exporting it assert housing.is_disjoint_from(part), "the part collides with the housing" print(f"housing volume: {housing.volume():.3f} m3") VolumeModel([housing, part], name="checked design").to_step("checked_design.step") design3d itself is developed with coding agents: the repository ships instructions for them in AGENTS.md, and a test suite to check every change. design3d is a hard fork of the discontinued volmdlr project.
pip install design3d design3d requires Python 3.12 or later.
Building design3d compiles Cython extensions, so you need a C/C++ compiler (usually already available on Linux and macOS; on Windows, install the Microsoft C++ Build Tools).
git clone https://github.com/masfaraud/design3d.git cd design3d pip install -e '.[test,doc]' pre-commit install See CONTRIBUTING.md for how to run the tests and checks before opening a pull request.
The documentation is not published online yet. To build it locally:
pip install '.[doc]' make -C docs html Then open docs/build/html/index.html.
100% open source under the LGPL 2.1 license. See LICENSE for more details.
Team and contributors
design3d is a hard fork of the discontinued volmdlr project: credits to the volmdlr project team.
Released: Dec 4, 2026
Author: Steven Masfaraud
All 31 files in this release have provenance metadata.
View provenance details
LGPL-2.1-only View SPDX License List
CAD 3D modeling solid modeling B-Rep STEP STL NURBS B-spline mesh parametric design generative design computational design CAD from code CAD automation design automation engineering design AI agents agentic engineering LLM
Development Status 4 - Beta
Intended Audience Developers
Operating System OS Independent
Programming Language Cython
Topic Multimedia :: Graphics :: 3D Modeling
Multimedia :: Graphics :: 3D Rendering
Scientific/Engineering
Scientific/Engineering :: Artificial Intelligence
Scientific/Engineering :: Mathematics
Scientific/Engineering :: Visualization
Release files for design3d 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distributions (wheels)
Total release size: 200.1 MB
Release files / design3d-0.1.0.tar.gz
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 Dec 4, 2026.
Release files / design3d-0.1.0-cp315-cp315t-win_amd64.whl
Release files / design3d-0.1.0-cp314-cp314t-win_amd64.whl
Release files / design3d-0.1.0-cp313-cp313-win_amd64.whl
Release files / design3d-0.1.0-cp312-cp312-win_amd64.whl
Security for design3d 0.1.0
All 31 files in this release have been uploaded with provenance metadata.
With provenance design3d-0.1.0.tar.gz Dec 4, 2026
With provenance design3d-0.1.0-cp315-cp315t-win_amd64.whl Dec 4, 2026
With provenance design3d-0.1.0-cp314-cp314t-win_amd64.whl Dec 4, 2026
With provenance design3d-0.1.0-cp313-cp313-win_amd64.whl Dec 4, 2026
With provenance design3d-0.1.0-cp312-cp312-win_amd64.whl Dec 4, 2026
Attestation for design3d-0.1.0.tar.gz
Attestation for design3d-0.1.0-cp315-cp315t-win_amd64.whl
Attestation for design3d-0.1.0-cp314-cp314t-win_amd64.whl
Attestation for design3d-0.1.0-cp313-cp313-win_amd64.whl
Attestation for design3d-0.1.0-cp312-cp312-win_amd64.whl
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.
Release history Release notifications | RSS feed
Dec 4, 2026 31 release files Full provenance
May 12, 2025 1 release file Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 107c339











