Source code for the CHI2021 paper Scrappy: Using Scrap Material as Infill to Make Fabrication More Sustainable DOI: https://doi.org/10.1145/3411764.3445187
Using a Linux system for the server could simplify some installation steps.
- Install libigl here.
- Add the
libigl_for_matryoshka
extension to your libigl installation (Copy the folder contents into the libigl base folder). - Install Matlab (R2017a).
- Adjust the
Matlab_ROOT_DIR
variable inFindLIBIGL.cmake
with the path to matlab.
In: server/matryoshka/cmake/FindLIBIGL.cmake
set(Matlab_ROOT_DIR "/path/to/matlab")
- Adjust the
contFilePath
variable inmatryoshkaModular.cpp
with the path toscrapLibrary/contFiles/
.
In: server/matryoshka/matryoshkaModular.cpp, line 236
contFilePath = "/path/to/scrappyLibrary/contFiles/" [...]
- Build the matryoshka project.
cd server/matryoshka
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
- Install venv.
- Start the django server.
cd server/server
source bin/activate
cd django/scrappy
python manage.py runserver 0.0.0.0:47555
- Adjust IP and run a server for a client IP.
In: server/server/server.py, lines 15 and 19
Adjust IP address to match clients
cd server/server
source bin/activate
python server.py
- Install Fusion360.
- Install Blender 2.9 here.
- Add Scrappy add-in to Fusion360.
Fusion360 -> Tools -> ADD-INNS --> Add-Inns --> Click the + sign to add existing add-in
Choose folder: client/Fusion360/ScrappyAdd-In
- Adjust IP to match server IP in
ScrappyAdd-In.py
.
In: client/Fusion360/ScrappyAdd-In/ScrappyAdd-In.py, line 56
Adjust IP to matcher server IP
- In Fusion360, run the add-in.
- Show the scrapLibrary panel from the Tools panel to start using Scrappy.
- Install node.js.
- Start the kiri:moto slicer .
cd client/grid-apps/
npm i
npm start
- Open Kiri:Moto to use the slicer.
- Ensure ports 46337-46998 and 47101-47557 are open.
Please email ludwigwall(at)gmail.com if you have any questions.