discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Created cutting library

JE
Johannes Ernst
Sun, Apr 14, 2019 9:08 PM

Problem: how to cut a part into two.

E.g.:

module MyPart() {
    // something
}

Cut in a comb pattern, with defaults:

Comb() {
    MyPart();
}

Cut in a zigzag pattern at the defined locations:

ZigZag( y = [ 10, 30 ] ) {
    MyPart();
}

Puzzle cut:

Puzzle( y = [ 10, 50, 80 ] ) {
    MyPart();
}

Lots of optional parameters.

Or, use your own cutting pattern by passing it in as a 2D shape:

LeftRight( ... ) {
    MyPart();
    square( size = [ 10, 5 ] );
};

Source: https://github.com/jernst/openscad-cuts

Thanks for the help trying to make children() do what I needed it to do: http://forum.openscad.org/Operator-problem-tp25984p25991.html

Enjoy :-)

Cheers,

Johannes.

Problem: how to cut a part into two. E.g.: module MyPart() { // something } Cut in a comb pattern, with defaults: Comb() { MyPart(); } Cut in a zigzag pattern at the defined locations: ZigZag( y = [ 10, 30 ] ) { MyPart(); } Puzzle cut: Puzzle( y = [ 10, 50, 80 ] ) { MyPart(); } Lots of optional parameters. Or, use your own cutting pattern by passing it in as a 2D shape: LeftRight( ... ) { MyPart(); square( size = [ 10, 5 ] ); }; Source: https://github.com/jernst/openscad-cuts Thanks for the help trying to make children() do what I needed it to do: http://forum.openscad.org/Operator-problem-tp25984p25991.html Enjoy :-) Cheers, Johannes.
T
Troberg
Tue, Apr 16, 2019 6:46 AM

Really useful to me as a laser cutter guy, and really neat!

I've been thinking of doing something like this for a while, but haven't got
around to it.

One small note, though: For laser cutting, it'd be nice if there was a small
radius on the corners of the "connecting shapes", as lasers have a tendencey
to over-burn corners slightly, especially in difficult materials, as it
needs to slow down too much when doing sharp corners. You can get around the
overburn by fiddling around with the settings to get precise power ramps,
but it's usually too much work to be practical.

--
Sent from: http://forum.openscad.org/

Really useful to me as a laser cutter guy, and really neat! I've been thinking of doing something like this for a while, but haven't got around to it. One small note, though: For laser cutting, it'd be nice if there was a small radius on the corners of the "connecting shapes", as lasers have a tendencey to over-burn corners slightly, especially in difficult materials, as it needs to slow down too much when doing sharp corners. You can get around the overburn by fiddling around with the settings to get precise power ramps, but it's usually too much work to be practical. -- Sent from: http://forum.openscad.org/
JE
Johannes Ernst
Tue, Apr 16, 2019 5:43 PM

On Apr 15, 2019, at 23:46, Troberg troberg.anders@gmail.com wrote:

Really useful to me as a laser cutter guy, and really neat!

Glad you like it.

One small note, though: For laser cutting, it'd be nice if there was a small
radius on the corners of the "connecting shapes”,…

I’ve added a “rounded box” example which simply minkovski()’s a box with a circle as the cutting shape. This rounds the front part of the protrusions, but not where they meet the main cutting axis. (as I am lacking inspiration how to do that right now …) I guess it meets about half your requirement ...

https://github.com/jernst/openscad-cuts/blob/master/examples/rounded-box-example.scad https://github.com/jernst/openscad-cuts/blob/master/examples/rounded-box-example.scad

Cheers,

Johannes.

> On Apr 15, 2019, at 23:46, Troberg <troberg.anders@gmail.com> wrote: > > Really useful to me as a laser cutter guy, and really neat! Glad you like it. > One small note, though: For laser cutting, it'd be nice if there was a small > radius on the corners of the "connecting shapes”,… I’ve added a “rounded box” example which simply minkovski()’s a box with a circle as the cutting shape. This rounds the front part of the protrusions, but not where they meet the main cutting axis. (as I am lacking inspiration how to do that right now …) I guess it meets about half your requirement ... https://github.com/jernst/openscad-cuts/blob/master/examples/rounded-box-example.scad <https://github.com/jernst/openscad-cuts/blob/master/examples/rounded-box-example.scad> Cheers, Johannes.