discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Hull smoothing

L
l4u
Sat, Apr 21, 2018 7:00 AM

I want to smooth several hulls. Should I start with minkowski?
I've read a previous post about smoothing at
http://forum.openscad.org/Smoothing-with-hull-td10550.html
But I'm not sure where to start.

The keyboard looks like this https://imgur.com/a/YzUT0TX
source: http://github.com/tshort/dactyl-keyboard

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

I want to smooth several hulls. Should I start with minkowski? I've read a previous post about smoothing at http://forum.openscad.org/Smoothing-with-hull-td10550.html But I'm not sure where to start. The keyboard looks like this https://imgur.com/a/YzUT0TX source: http://github.com/tshort/dactyl-keyboard -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sat, Apr 21, 2018 7:33 AM

Careful about terminology, hull() is an OpenSCAD module. I think you mean
smooth the mesh/object/outline etc?

By 'smooth' you want the edges rounded, but not the square holes, nor the
stuff inside.
Looks like the github stuff is .stl (unless someone wants to fiddle with
Clojure source), there is not a straight forward solution.

Someone may come up with something...


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

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

Careful about terminology, hull() is an OpenSCAD module. I think you mean smooth the mesh/object/outline etc? By 'smooth' you want the edges rounded, but not the square holes, nor the stuff inside. Looks like the github stuff is .stl (unless someone wants to fiddle with Clojure source), there is not a straight forward solution. Someone may come up with something... ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
L
l4u
Sat, Apr 21, 2018 9:18 AM

Yes I want to smooth the edges, but keep the square holes untouched.

Here is the generated openSCAD code.
https://gist.github.com/l4u/09294ccaaff9776676b63f5dee7aca67

I'm thinking of modifying at openSCAD.

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

Yes I want to smooth the edges, but keep the square holes untouched. Here is the generated openSCAD code. https://gist.github.com/l4u/09294ccaaff9776676b63f5dee7aca67 I'm thinking of modifying at openSCAD. -- Sent from: http://forum.openscad.org/
G
Gadgetmind
Sat, Apr 21, 2018 1:43 PM

On 21/04/18 10:18, l4u wrote:

Yes I want to smooth the edges, but keep the square holes untouched.

When I want to do anything "clever" with holes, I use a special variable
called $negative.

I then difference () all of my geometry called with $negative=false with
the same code called with $negative set true. With $negative false,
everything creates its "form", and with it true, creates its holes.

You can then smooth the positive form before removing sharp holes. I
find minkowski too slow and generally smooth things in other (non
trivial!) ways, but I can't immediately see how to apply these to your
case (pun intended!).

I generally use this approach when I want "holes" a module creates to be
removed from all other modules too, which happens naturally as all the
$negative false parts are (implicitly) unioned and then the union of the
negative true parts is removed.

Hope this helps.

On 21/04/18 10:18, l4u wrote: > Yes I want to smooth the edges, but keep the square holes untouched. When I want to do anything "clever" with holes, I use a special variable called $negative. I then difference () all of my geometry called with $negative=false with the same code called with $negative set true. With $negative false, everything creates its "form", and with it true, creates its holes. You can then smooth the positive form before removing sharp holes. I find minkowski too slow and generally smooth things in other (non trivial!) ways, but I can't immediately see how to apply these to your case (pun intended!). I generally use this approach when I want "holes" a module creates to be removed from all other modules too, which happens naturally as all the $negative false parts are (implicitly) unioned and then the union of the negative true parts is removed. Hope this helps.
T
Troberg
Mon, Apr 23, 2018 7:58 AM

It's mostly a matter of which order you do things in. First do the minkowski
to create the round shape, then punch the square holes with difference.

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

It's mostly a matter of which order you do things in. First do the minkowski to create the round shape, then punch the square holes with difference. -- Sent from: http://forum.openscad.org/