some readme updates

This commit is contained in:
Jan Petykiewicz 2020-03-15 23:15:18 -07:00
commit aae542c8e5

View file

@ -1,4 +1,4 @@
# adze # adze
**adze** is a Python package for accurate polyhedron clipping **adze** is a Python package for accurate polyhedron clipping
and anti-aliased voxelization. and anti-aliased voxelization.
@ -9,24 +9,25 @@
- Clipping or splitting arbitrary polyhedra - Clipping or splitting arbitrary polyhedra
- by a plane or a collection of planes (i.e. a convex polyhedron) - by a plane or a collection of planes (i.e. a convex polyhedron)
- Voxelizing arbitrary polyhedra - Voxelizing arbitrary polyhedra
- -
## Installation ## Installation
**Dependencies:** **Dependencies:**
* python 3.5 or newer * python 3.6 or newer
* numpy * numpy
* pytest (optional, testing)
* pytest-benchmark (optional, benchmarking)
Install with pip from PyPi (preferred): Install with pip from PyPi (preferred):
```bash ```bash
pip install adze pip3 install adze
``` ```
Install directly from git repository: Install directly from git repository:
```bash ```bash
pip install git+https://mpxd.net/code/jan/adze.git@release pip3 install git+https://mpxd.net/code/jan/adze.git@release
``` ```
## Documentation ## Documentation
@ -38,18 +39,3 @@ import adze
help(adze) help(adze)
help(adze.split) help(adze.split)
``` ```
## Examples
TODO
Read an OASIS file and write it back out:
```python3
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)
```