Hello!
I found this cool Inkscape extension and played around with it.
Find the authors instructable here:
https://www.instructables.com/3D-Printable-Cookie-Cutters-With-Inkscape-and-Open/
Setup
- Download all free required software:
- Inkscape
- OpenSCAD
- A slicer such as Cura
- Install software like normal
- Download the extension: OpenSCAD cookie cutter file output
https://inkscape.org/~arpruss/%E2%98%85openscad-cookie-cutter-file-output%20 - Open Inkscape, Go to Edit/Preferences:
- Go to System/Inkscape Extensions, and copy the location:
- Unzip the Inkscape extension to that location, for me it was here:
C:\Program Files\Inkscape\share\inkscape\extensions - The folder should be there named "cookiecutterinkscapeplugin" open this.
- You should see a python file called "svg2cookiecutter.py" you can open this with notepad or notepad++ or another program of your choosing. This can be used to tune the parameters for all generated files.
Testing it Out
- Open a New Inkscape Document
- Create a Square, hold Ctrl
- Click the Mouse Icon to Select it
- From the top Toolbar: Path > Object to Path
- In the Fill and Stroke tab on the right-hand side, Select no Fill, and Solid Stroke. Stroke Style Width to something that is easily visible.
- Copy and Paste the Square 2x, set to Red, Green and Black.Red - Outside Lines with Brim - RGBA: ff0000ff
Black - Partial Lines for Embossing - RGBA: 000000ff - Create two more squares, this time adjust so that they have a solid fill
- Align all squares by dragging them on top of each other. Click a corner and use Ctrl + Shift to shrink it.
- Select all squares, Ctrl + A
- Edit > Resize Page to Selection
- File Save As - Adjust type to OpenSCAD
- Open the File in OpenSCAD to confirm that it works.
- Tune parameters and hit save after each one until it is to your liking
- To adjust them for all future files, copy and paste your changes into the "svg2cookiecutter.py" file mentioned in Setup.
Below for a 0.4 mm embossing edge height, I set wallHeight to 9, and featureHeight to 8.6.
To make sure your feature height is working, you can set it to 6 for easier visibility. Hit save after any changes in OpenSCAD to refresh the view. Note if you save the scad file in inkscape, it will overwrite any changes made to the file open in OpenSCAD with the values stored in the .py file.
// Red & Green Height
wallHeight = 9;
minWallThickness = .6;
maxWallThickness = .6;
minInsideWallThickness = 0.2;
maxInsideWallThickness = .6;
// Red Edge Rim Thickness
wallFlareWidth = 2;
wallFlareThickness = 2;
// Green Edge Rim Inside
insideWallFlareWidth = 1.5;
insideWallFlareThickness = 1.5;
// Black Inner Embossing
featureHeight = 7.2;
// White Fill Bottom Thickness
connectorThickness = 2;
// All Colors - Angle Crease Starting Height
cuttingTaperHeight = 3.5;
cuttingEdgeThickness = .2;
minFeatureThickness = .8;
maxFeatureThickness = 1.5;
// set to non-zero value, ex: 1, to generate a demoulding plate
demouldingPlateHeight = 0;
demouldingPlateSlack = .6;
White fill, no stroke can be used to connect pieces together as below. Use the Align tools in Inkscape to center them on objects. You can combine or subtract images from each other using the Path functions in the top dropdown menu.
No comments:
Post a Comment