项目作者: CZDanol

项目描述 :
Danol's Cookie Cutter STL Generator
高级语言: Python
项目地址: git://github.com/CZDanol/cookieCutterStlGenerator.git
创建时间: 2020-12-10T19:09:34Z
项目社区:https://github.com/CZDanol/cookieCutterStlGenerator

开源协议:GNU General Public License v3.0

下载


Danol’s SVG -> Cookie Cutter STL Generator

input
input

How it works

  • Takes in SVG/DWF files (even in batch)
    • Best to set the SVG to strokes only.
    • It can contain multiple paths.
  • Spits out OpenSCAD files
  • If you specify OpenSCAD filepath, it can automatically generate STL files
  • The OpenSCAD generation is quite slow because it’s using minkowski sum. Well, OpenSCAD sucks :/ But at least I’ve made it when processing multiple svgs.

Settings

Settings can be specified in multiple ways (ordered by priority)

  1. File names. File name is split by _ and then every item is scanned against settings list (for example cook1_h=10.svg)
  2. Command line arguments to the script.
  3. INI file in the directory of the svg.
    • Default ini location: “config.ini” in the working folder.
    • Can set all values from “help”, they must be in the [DEFAULT] section.

Available settings

  1. Usage:
  2. cookie2stl (options) (files or dirs)
  3. Options:
  4. --baseWidth=4
  5. (mm) Width of the base
  6. --baseHeight=1
  7. (mm) Height of the base
  8. --cutterWidth=0.8
  9. (mm) Width of the cutter extrusion
  10. --cutterHeight=10
  11. (mm) Height of the cutter extrusioon (including wedge)
  12. --cutterWedgeHeight=3
  13. (mm) Height of the wedge of the cutter extrusion. The larger this number, the sharper the cutter.
  14. --mesh=0
  15. If set to 1, a support mesh is generated (needed for multi-path cutters)
  16. --meshDistance=10
  17. (mm) Distance of mesh grills
  18. --meshWidth=1
  19. (mm) Width of mesh grills
  20. --meshArea=400
  21. (mm) Area where the mesh is generated (+-)
  22. --w=0
  23. (mm) If set to anything else than 0, will resize the drawing so it has weight w
  24. --scaling=1
  25. (mm) Used for scaling the source svg file. Doesn't make sense combining with 'w'.
  26. --openscadLocation=None
  27. Location of the scad exe file
  28. --genStl=0
  29. Will automatically generate STL files if set to 1. openscadLocation needs to be set

Requirements

  • Python
  • OpenSCAD