Hull smoothing

classic Classic list List threaded Threaded
5 messages Options
l4u
Reply | Threaded
Open this post in threaded view
|

Hull smoothing

l4u
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hull smoothing

MichaelAtOz
Administrator
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

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!
l4u
Reply | Threaded
Open this post in threaded view
|

Re: Hull smoothing

l4u
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hull smoothing

Gadgetmind
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.



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hull smoothing

Troberg
In reply to this post by l4u
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org