pymadcad is the python module (a code library) allowing to perform CAD modeling in pure python.
It is meant to be easy, extensible, flexible and intuitive.

pymadcad contains all the functions and data definitions of uimadcad. All the code you write in the script view of the GUI is only a regular python script using pymadcad. And the file that the GUI is producing is just this python script in a text file, named a python file.
This means you don't need uimadcad to run it, you can just run your file with python.

The module uses Qt and OpenGL to display its graphics, and all the usual python scientific libraries for computations

pymadcad is still under development so all features might not work perfectly. If so, please report an issue.issues

Features of pymadcad

  • very intuitive 3d geometry through vectors and matrices
  • regular generation functions (extrusion, revolution, tube, saddle, triangulation, ...)
  • boolean operations on surfaces and webs
  • chamfer and bevel operations on surfaces and webs
  • rendering high quality graphics featuring the display protocol
  • geometric constraint solver
  • kinematic manipulation
  • very standard mesh format : buffered points and triangles

Project links

How to install

To install pymadcad on your computer, please refer to the guide