|
5 | 5 | [](https://pypi.python.org/project/COMPAS-SLICER) |
6 | 6 | [](https://zenodo.org/badge/latestdoi/226364384) |
7 | 7 |
|
8 | | - |
9 | | - |
10 | | -Slicing package for FDM 3D Printing with COMPAS. |
11 | | - |
| 8 | +Python slicing package for FDM 3D Printing based on the [COMPAS](https://block.arch.ethz.ch/brg/tools/compas-computational-framework-for-collaboration-and-research-in-architecture-structures-and-digital-fabrication) framework. |
12 | 9 |
|
13 | 10 | ## Main features |
14 | 11 |
|
15 | 12 | * Planar slicing (default method, and method based on Cgal library) |
16 | 13 | * Curved slicing (interpolation of boundaries, UV slicing, scalar field slicing) |
17 | 14 | * Generation of fabrication-related information |
18 | | -* Export print data to Json and gcode formats |
| 15 | +* Export print data to Json and gcode format |
| 16 | +* Visualization of results in grasshopper |
19 | 17 |
|
20 | 18 | ## Getting started |
21 | 19 |
|
22 | | -### Step 1: Installation |
23 | | - |
24 | | -The recommended way to install `compas_slicer` is with [conda](https://conda.io/docs/). |
25 | | -For example, create an environment named ``my-project`` (or replace with your own environment name) and install as follows: |
26 | | - |
27 | | - conda config --add channels conda-forge |
28 | | - conda create -n my-project compas_slicer |
29 | | - |
30 | | -### Step 2: Optional installation steps |
31 | | - |
32 | | -#### COMPAS Viewers |
33 | | - |
34 | | -Follow the instructions to install `compas_view2` (https://github.com/compas-dev/compas_view2). |
35 | | - |
36 | | -#### COMPAS CGAL (for planar slicing) |
37 | | - |
38 | | - conda install -n my-project compas_cgal |
39 | | - |
40 | | -#### LIBIGL python bindings (for curved slicing) |
41 | | - |
42 | | - conda install -c conda-forge igl |
43 | | - |
44 | | -#### Grasshopper |
45 | | - |
46 | | -The Grasshopper components are automatically installed with the `compas_rhino` installation, e.g.: |
47 | | - |
48 | | - conda activate my-project |
49 | | - python -m compas_rhino.install -v 6.0 |
50 | | - |
51 | | -### Step 3. Test if the library works |
52 | | - |
53 | | -Activate your environment and run the following command: |
54 | | - |
55 | | - conda activate my-project |
56 | | - python -m compas_slicer |
57 | | - |
58 | | -Enjoy! |
59 | | - |
60 | | -## Troubleshooting |
61 | | - |
62 | | -See here: https://compas.dev/compas_slicer/installation.html#troubleshooting-1 |
63 | | - |
64 | | -## Contributions |
65 | | - |
66 | | -Before contributing code: |
67 | | - |
68 | | -- Install development dependencies: |
69 | | -```bash |
70 | | -pip install -r requirements-dev.txt |
71 | | -``` |
72 | | - |
73 | | -- Make sure all tests pass: |
74 | | -```bash |
75 | | -invoke test |
76 | | -``` |
77 | | - |
78 | | -- Make sure you pass flake8 tests. (hint: This is the most annoying part of the process) |
79 | | -```bash |
80 | | -invoke lint |
81 | | -``` |
82 | | - |
83 | | -- Add an example on the examples folder that uses the new functionality. Run the example and make sure it works smoothly. |
| 20 | +You can find tutorials and documentation of the project in the [compas_slicer page](https://compas.dev/compas_slicer/latest/) |
84 | 21 |
|
85 | | -- 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. |
86 | | -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. |
| 22 | +For installation instructions, see here: [installation](https://compas.dev/compas_slicer/latest/installation.html) |
87 | 23 |
|
| 24 | +For troubleshooting, see here: [troubleshooting](https://compas.dev/compas_slicer/installation.html#troubleshooting-1) |
88 | 25 |
|
89 | 26 | ## Authors |
90 | 27 |
|
|
0 commit comments