adze/README.md
2026-03-07 00:46:27 -08:00

940 B

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)