additive manufacturing package for the compas framework
Project description
compas_slicer
Additive manufacturing package for the COMPAS framework.
Main features
- Planar slicing
- Curved slicing (using the stratum library)
- Export robotic commands in Json format
Getting started
Step 1: Install compas
- Create a new environment (you can replace 'compas_slicer' with your own environment name), and install compas, compas_cgal, and libigl.
conda create -n compas_slicer python=3.7
conda activate compas_slicer
conda install COMPAS
conda install COMPAS compas_cgal
conda install -c conda-forge igl
Step 2: Install compas_slicer
- Clone the repository and activate your environment.
git clone https://github.com/compas-dev/compas_slicer.git
conda activate compas_slicer
- Navigate to the folder where you cloned the compas_slicer repository and install compas_slicer using:
pip install -e .
- You should get the message 'Successfully installed compas-slicer' (amongst other packages)
Step 3. Install compas_viewers
-
Install compas_viewers (https://github.com/compas-dev/compas_viewers).
-
Download the wheel file from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/ To install on an existing environment with python=3.7, use:
conda activate <environment_name>
pip install PySide2
pip install <path/to/file>/PyOpenGL‑3.1.5‑cp37‑cp37m‑win_amd64.whl
pip install <path/to/compas_viewers>
Step 4. Test if the library works
- Run the file examples/1_versions_check.py
Enjoy!
Troubleshooting
See here: https://compas.dev/compas_slicer/installation.html#troubleshooting-1
Contributions
Before contributing code:
- Install development dependencies:
pip install -r requirements-dev.txt
- Make sure all tests pass:
invoke test
- Make sure you pass flake8 tests. (hint: This is the most annoying part of the process)
invoke lint
-
Add an example on the examples folder that uses the new functionality. Run the example and make sure it works smoothly. Ideally also add a visualization of the result using compas.MeshPlotter (see the other examples in the same folder)
-
Create a pull request for the master branch, where you explain in detail what you fixed. When you create a pull request, there is an automatic action that runs the tests for your code again on the server. Make sure the pull request passes the automatic tests as well. If not, then inspect the result, find what went wrong, fix it, and push again the result on your branch. The action will run again automatically on the open pull request.
Authors
- Ioanna Mitropoulou <mitropoulou@arch.ethz.ch> @ioanna21
- Joris Burger <burger@arch.ethz.ch> @joburger
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for compas_slicer-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b8ad0d45a8ed9c1b58557072ba9d844814cc4960ae545bb900c50a06ae14dc |
|
MD5 | 29d3d78bf75095ccc9c71980ac7e34b0 |
|
BLAKE2b-256 | 17d9facc632ed19d83a05ddbbdb75fe905db7cc6d05187a52aaf52a8badf3522 |