adze/adze
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-07 07:09:19 -08:00
..
test [split] add a tolerance for splitting to avoid making tiny slivers 2026-03-07 07:07:43 -08:00
__init__.py Documentation update 2026-03-07 00:46:27 -08:00
boundary.py improve type annotations 2024-07-31 22:38:24 -07:00
LICENSE.md move to hatch-based build 2022-08-18 23:47:26 -07:00
moments.py various linter-related fixes 2024-07-31 00:59:09 -07:00
README.md move to hatch-based build 2022-08-18 23:47:26 -07:00
shapes.py various linter-related fixes 2024-07-31 00:59:09 -07:00
split.py [split] add a tolerance for splitting to avoid making tiny slivers 2026-03-07 07:07:43 -08:00
test_results.txt Use pytest for tests 2020-03-15 22:18:02 -07:00
transform.py various linter-related fixes 2024-07-31 00:59:09 -07:00
util.py [util] add is_inside 2026-03-07 07:09:19 -08:00
voxel.py various linter-related fixes 2024-07-31 00:59:09 -07: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)