PELA Blocks

LEGO-compatible Parametric 3D Printed Blocks and Gadgets

View project on GitHub

PELA Blocks

See also the Slicer Recommendations printing information.

Advanced Setup

Instructions are for Windows, however Linux and OSX are esssentially the same but scripts to automate batch building are not provided.

Backing Up Your Calibration Files

If you later update the PELA-blocks project to a newer version, you risk overwirting and loosing your calibration customizations. The simplest solution is to create a backup copy those settings.

  1. cd PELA-blocks
  2. copy style.scad ..\PELA-parameters-backup.scad
  3. copy material.scad ..\PELA-print-parameters-backup.scad

Sparce Checkout

This saves time and bandwidth when the models are updated on the server.

  1. git config core.sparcecheckout true
  2. Create .git\info\sparce-checkout with the following 3 lines:




  3. From now on git pull will be faster because it will skip old versions of generated files.

Compress and clean STL files from the command line

OpenSCAD exports large text files which 2x larger than binary STL and may contain mistakes. Usually your slicer can handle this just fine, but you may want to enable options like Cura “Extensive Stitiching”. Cleaning and compressing the STL before slicing is optional but may help if you Slicer complains about the file. A quick solution is to load and re-save the file generated by OpenSCAD in Windows 3D Builder (Open the file, Click YES to fix, then CTRL S to save over the original file), Meshlab or Meshmixer.

Follow the instructions below if you want to this from the command line or have it done for you automatically when rebuilding the models from the command line.

  1. Calibrate the PELA Block models for your printer before making and clearning any models
  2. Install Meshlab
  3. Add it to your path: C:\Program Files\VCG\MeshLab
  4. To make and clean a single block: block.ps1 -stl -clean l=4 w=2 h=1
  5. To make and clean a single block with technic holes: technic-block.ps1 -stl -clean l=2 w=2 h=2
  6. To batch make and clean all models with current material calibration values: make.ps1 -stl -clean