ToAruShiroiNeko has quit [Ping timeout: 260 seconds]
rvt has joined #openscad
DrCadair has joined #openscad
<Cadair>
Hello all. I have a model which I want to run the minkowski transform on to curve the edges, it's linearly extruded from a 2D shape. The issue is that it takes forever, looking closely at the model where I have done some differences etc it looks like there are a lot more edges that there really needs to be. I was wondering if anyone had any suggestions on tricks to help, or reduce the number of edges in a model.
Ckat has quit [Read error: Connection reset by peer]
Guest51 has joined #openscad
<Scopeuk>
Cadair do you want to addcurving to the top and bottom or just the edges visible in the 2d projection?
<Scopeuk>
there is offset for 2d which is much faster, but almost certainly the minkowski is slow is caused by the many edges issue you already identified
<Cadair>
Yeah only the top and bottom edges
<Scopeuk>
you could try reducing $fn/$fs for the circles the base is made from
<Scopeuk>
I also suspect this would like the fast csg stuff that is in the nightly's but that is using the development version
<Scopeuk>
depending on your desired end result it may be much faster to make the 2d profile of the circles and then rotate_extrude them and assemble
<Cadair>
I bet my model with the minkowski would destroy firefox 🤣
<Scopeuk>
minkowski does that to everything
<Scopeuk>
there are some libraries for openscad that provide a lot of smoothed basic shaped using other methods which are much lighter will be on https://openscad.org/libraries.html somewhere but I forget which of the regulars created the particular one
<InPhase>
Yeah, smooth prim is one of mine. Each entry is pretty compact in that approach, and thus usable as-is, or as a copy/paste example.
<InPhase>
There are faster methods for many of those which are more involved to implement, but that's intentionally a simple-example library. But I'd be happy to swap any entries out with another compact straightforward example which is demonstrated as more efficient.
<InPhase>
I'm intentionally avoiding things like polyhedron implementations in there.
<Cadair>
Does it implement the smoothed holes as it were, so I could remove a smoothed cylinder from the base shape?
<InPhase>
Yeah, the example image has both a rounded and chamfered smoothed hole.
<InPhase>
Although looking at your link of what I did, I don't know why I did it that way. It looks like a rotate_extrude of a 2D constructed hole would have been more efficient.
<InPhase>
Something to poke at on a weekend. :)
<Scopeuk>
I suppose rotate extruding a "cookie cutter" with the right profile to differenc is quite easy
rvt has quit [Quit: rvt]
<J22>
yeah make 8 × a rotate_extrude translate([10,0]) offset(5)square([2,10],true);