Python polyhedron clipping library
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-07 08:23:48 -08:00
adze [offset] add smooth, open, close 2026-03-07 08:23:48 -08:00
.gitignore more timing 2018-03-09 17:15:30 -08:00
LICENSE.md add license and manifest 2018-04-05 12:13:17 -07:00
pyproject.toml misc cleanup and testing deps 2026-03-07 06:49:49 -08:00
README.md Documentation update 2026-03-07 00:46:27 -08:00

adze

adze is a Python package for accurate polyhedron clipping and anti-aliased voxelization.

Homepage: https://mpxd.net/code/jan/adze

Capabilities: - Clipping or splitting arbitrary polyhedra by a plane or a collection of planes (i.e. a convex polyhedron). - Accurate anti-aliased voxelization of arbitrary polyhedra on non-uniform rectangular grids. - Calculation of polynomial moments (volume, centroid, inertia, etc.) for clipped polyhedra.

Installation

Dependencies:

  • python 3.11 or newer
  • numpy
  • pytest (optional, testing)
  • pytest-benchmark (optional, benchmarking)

Install with pip from PyPi (preferred):

pip install adze

Install directly from git repository:

uv pip install git+https://mpxd.net/code/jan/adze.git

Documentation

Most functions and classes are documented inline.

To read the inline help,

import adze
help(adze)
help(adze.split)