exii-uw / Scrappy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrappy

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

Server side installation

Using a Linux system for the server could simplify some installation steps.

  1. Install libigl here.
  2. Add the libigl_for_matryoshka extension to your libigl installation (Copy the folder contents into the libigl base folder).
  3. Install Matlab (R2017a).
  4. Adjust the Matlab_ROOT_DIR variable in FindLIBIGL.cmake with the path to matlab.
In: server/matryoshka/cmake/FindLIBIGL.cmake

set(Matlab_ROOT_DIR "/path/to/matlab")
  1. Adjust the contFilePath variable in matryoshkaModular.cpp with the path to scrapLibrary/contFiles/.
In: server/matryoshka/matryoshkaModular.cpp, line 236

contFilePath = "/path/to/scrappyLibrary/contFiles/" [...]
  1. Build the matryoshka project.
cd server/matryoshka
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
  1. Install venv.
  2. Start the django server.
cd server/server
source bin/activate
cd django/scrappy
python manage.py runserver 0.0.0.0:47555
  1. 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

Client side installation

  1. Install Fusion360.
  2. Install Blender 2.9 here.
  3. 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
  1. 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
  1. In Fusion360, run the add-in.
  2. Show the scrapLibrary panel from the Tools panel to start using Scrappy.
  3. Install node.js.
  4. Start the kiri:moto slicer .
cd client/grid-apps/
npm i
npm start
  1. Open Kiri:Moto to use the slicer.

Network

  1. Ensure ports 46337-46998 and 47101-47557 are open.

Misc

Please email ludwigwall(at)gmail.com if you have any questions.

About


Languages

Language:JavaScript 64.5%Language:C++ 17.5%Language:Python 8.6%Language:HTML 3.0%Language:MATLAB 2.2%Language:OpenSCAD 1.1%Language:Component Pascal 0.9%Language:CSS 0.9%Language:SCSS 0.6%Language:C 0.2%Language:Roff 0.1%Language:Shell 0.1%Language:PHP 0.1%Language:CMake 0.1%Language:Macaulay2 0.0%Language:CWeb 0.0%Language:Prolog 0.0%Language:G-code 0.0%Language:Makefile 0.0%Language:Assembly 0.0%