Skip to content

Prerequisites

Gilles Bouissac edited this page Jan 23, 2021 · 11 revisions

Basics

What is needed to use agentscad library:

  • Install OpenSCAD
  • Install libraries (see below)
  • Create a new file in OpenSCAD and begin using APIs.

Libraries listed above must be installed in:

  • Windows: My Documents\OpenSCAD\libraries
  • Linux: $HOME/.local/share/OpenSCAD/libraries
  • Mac OS X: $HOME/Documents/OpenSCAD/libraries

The folder libraries might not exist you have to create it yourself.

Download as ZIP and unzip (or git clone) in libraries folder:

Note: The ZIP files contains the branch name (ie: master), this folder must be removed before install.

The result should be:

  %USERPROFILE%
    \__Documents
       \__ OpenSCAD
           \__ libraries
               \__ agentscad
               \__ list-comprehension-demos
               \__ scad-utils

Canvas

Working with canvas library needs grayscale images as input, This tool can be used to generate them from pictures: img2gray.

This is a python script that use opencv graphic library:

  • Install python
  • Then install opencv from a shell: pip install opencv-python
Clone this wiki locally