Python polyhedron clipping library
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-03-15 22:17:29 -07:00
adze add some util functions for dealing with boundary representations 2020-03-15 22:17:29 -07: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
MANIFEST.in add license and manifest 2018-04-05 12:13:17 -07:00
README.md rename to adze 2018-04-19 20:15:01 -07:00
setup.py rename to adze 2018-04-19 20:15:01 -07:00
tpy_r3d.py rename to adze 2018-04-19 20:15:01 -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) - Voxelizing arbitrary polyhedra -

Installation

Dependencies:

  • python 3.5 or newer
  • numpy

Install with pip from PyPi (preferred):

pip install adze

Install directly from git repository:

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

Documentation

Most functions and classes are documented inline.

To read the inline help,

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

Examples

TODO Read an OASIS file and write it back out:

    import fatamorgana

    with open('test.oas', 'rb') as f:
        layout = fatamorgana.OasisLayout.read(f)
    
    with open('test_write.oas', 'wb') as f:
        layout.write(f)