Skip to content
This repository

Python programming environment for Solid Modelling

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 cadmium
Octocat-spinner-32 evaluator
Octocat-spinner-32 examples
Octocat-spinner-32 icons
Octocat-spinner-32 oce-bugs
Octocat-spinner-32 screenshots
Octocat-spinner-32 ui
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE

qtmium is a Python programming environment for Solid Modelling

qtmium is based on Cadmium (Jayesh Salvi @jyro) and inspired by OpenSCAD ( It allows you to write python code to create primitive objects (Box, Cylinder, Sphere, etc.) and apply CSG operations (Addition, Subtraction, Intersection) on them to create advanced solid models. The primitives have support for affine transformations too (translation, rotation).

Screenshots and examples

Typical Solid modelling code with qtmium

box = Box(x=4, y=4, z=4).rotate(Z_axis, 30)
cyl = Cylinder(radius=2, height=4).translate(-1,0,0)

result = box + cyl

Getting qtmium

The easiest way to setup PythonOCC and OCE is to do it in Ubuntu (or Ubuntu VM). To install qtmium just do sudo apt-add-repository ppa:hmeyer/3d;sudo apt-get update;sudo apt-get install qtmium.

Installing from Github:

First grab the sources. Install dependencies:

You will need Python Open Cascade -

sudo apt-get install python-qt4 pyqt4-dev-tools python-qscintilla2 python-argparse python-restrictedpython python-fontforge

There seems to be a bug that will produce an error message when you start qtmium the first time. Please run: python install

It will give you errors, ignore those; you can just start now.


qtmium is inspired by the OpenSCAD project and relying heavily on Cadmium.

qtmium is a work in progress. Bug reports and patches are welcome.

Something went wrong with that request. Please try again.