On 01/16/2015 09:35 PM, digital wrote:
I'm not an expert with the command line and I am using windows not linux.
How do I run that in windows cmd?
On Windows that might be possible using MSYS2, but I guess it's easier
to just do the math manually.
-
Get the bounding box of the STL via some editor and calculate the
center of the STL in X and Y direction (for the example let's use
center X = 10 and center Y = 5)
-
Create a simple scad file with just 1 line using the center values:
projection(cut = true) translate([-10, -5, -Z]) import("your_file.stl");
- Create a batch file to call OpenSCAD multiple times, once for each
layer, Z just changes for where you want the cuts to happen:
openscad.com -o layer1.dxf -DZ=0 slice.scad
openscad.com -o layer2.dxf -DZ=2 slice.scad
openscad.com -o layer3.dxf -DZ=4 slice.scad
openscad.com -o layer4.dxf -DZ=6 slice.scad
...
ciao,
Torsten.
On 01/16/2015 09:35 PM, digital wrote:
> I'm not an expert with the command line and I am using windows not linux.
> How do I run that in windows cmd?
>
On Windows that might be possible using MSYS2, but I guess it's easier
to just do the math manually.
* Get the bounding box of the STL via some editor and calculate the
center of the STL in X and Y direction (for the example let's use
center X = 10 and center Y = 5)
* Create a simple scad file with just 1 line using the center values:
projection(cut = true) translate([-10, -5, -Z]) import("your_file.stl");
* Create a batch file to call OpenSCAD multiple times, once for each
layer, Z just changes for where you want the cuts to happen:
openscad.com -o layer1.dxf -DZ=0 slice.scad
openscad.com -o layer2.dxf -DZ=2 slice.scad
openscad.com -o layer3.dxf -DZ=4 slice.scad
openscad.com -o layer4.dxf -DZ=6 slice.scad
...
ciao,
Torsten.