need help for beveling/smoothing

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

need help for beveling/smoothing

bboett
Hello

i am trying to design my own spool holder for my 3D printer (i know there
are more original stuff to do, yet, i found nothing directly usable, so...)

i have put the actual state into https://github.com/nohkumado/spulenhalter

at the moment it is quite coarse, i am still a beginner with openscad, the
rim is not as i want it to be, it still protrudes a bit, the encroachings
need bevelling to be more gentle to the touch (well sandpaper is your
friend... but if i could do without...)

i read about the different bevel libraries, but only found ones that work on
straight lines, and mine are (should be) curved (my polygons are still
rough....) i found some examples on curved surfaces, but the stuff presented
there exceeded by far my mathematical prowesses.....

so if someone has some tips, or even maybe could look into the knob:

https://github.com/nohkumado/spulenhalter/blob/master/knauf.scad

and make it more smooth, would earn my neverending thankfullness!

thanks in advance

Bruno





--
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: need help for beveling/smoothing

tobject
it was done already https://www.thingiverse.com/thing:3252111

On 7/10/19, bboett <[hidden email]> wrote:

> Hello
>
> i am trying to design my own spool holder for my 3D printer (i know there
> are more original stuff to do, yet, i found nothing directly usable, so...)
>
> i have put the actual state into https://github.com/nohkumado/spulenhalter
>
> at the moment it is quite coarse, i am still a beginner with openscad, the
> rim is not as i want it to be, it still protrudes a bit, the encroachings
> need bevelling to be more gentle to the touch (well sandpaper is your
> friend... but if i could do without...)
>
> i read about the different bevel libraries, but only found ones that work
> on
> straight lines, and mine are (should be) curved (my polygons are still
> rough....) i found some examples on curved surfaces, but the stuff
> presented
> there exceeded by far my mathematical prowesses.....
>
> so if someone has some tips, or even maybe could look into the knob:
>
> https://github.com/nohkumado/spulenhalter/blob/master/knauf.scad
>
> and make it more smooth, would earn my neverending thankfullness!
>
> thanks in advance
>
> Bruno
>
>
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.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: need help for beveling/smoothing

Parkinbot
In reply to this post by bboett
The easiest solution:

minkowski()
{
  knauf();
  sphere(3);
}

</file/t887/Knauf.png>



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

Batman!

lar3ry
Parkinbot wrote
> minkowski()
> {
>   knauf();
>   sphere(3);
> }

Holy *&^@ Parkinbot!
Best use of minkowski I've seen

Thanks!




--
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: Batman!

Guenther Sohler-2
we dont have knauf();



On Wed, Jul 10, 2019 at 11:25 PM lar3ry <[hidden email]> wrote:
Parkinbot wrote
> minkowski()
> {
>   knauf();
>   sphere(3);
> }

Holy *&^@ Parkinbot!
Best use of minkowski I've seen

Thanks!




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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.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: Batman!

lar3ry
Guenther Sohler-2 wrote
> we dont have knauf();

Right. the OpenSCAD code for knauf was in the OP's post. I was thanking
Parkinbot for the general technique.
No idea how "Batman!" got to be the subject.

For an idea of why I thought it was a great technique, try this in OpenSCAD

$fn=60;
minkowski() {
  cube(20);
  sphere(4);
}
translate ([40,0,0])
  minkowski() {
    cylinder(h=20,d1=20,d2=4);
    sphere(4);
}






--
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: need help for beveling/smoothing

bboett
In reply to this post by tobject
tobject wrote
> it was done already https://www.thingiverse.com/thing:3252111

not really.... as sayd i have a wall mount with a 10mm thread, that spool
takes max 8mm (and i prefer the look of the other one ;) )

and yes, i know there are allready lots of spoolholders out there, and the
one you point at, at least was done in openscad, which makes customization
easier!

ciao
Bruno




--
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: need help for beveling/smoothing

bboett
In reply to this post by Parkinbot
Parkinbot wrote
> The easiest solution:
>
> minkowski()
> {
>   knauf();
>   sphere(3);
> }

thanks a lot! that did it, even if precompiling now takes 10min istead of a
few s :D
Bruno



--
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: need help for beveling/smoothing

bboett
hello again!

well :( didn't work (as sayd code is in
https://github.com/nohkumado/spulenhalter)

i added the minkovsky transform to the final stage, and the whole thing
bites the dust with a
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e_below != SHalfedge_handle() File:
/usr/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 427
Geometries in cache: 143
Geometry cache size in bytes: 1374856
CGAL Polyhedrons in cache: 24
CGAL cache size in bytes: 67098656
Total rendering time: 0 hours, 1 minutes, 24 seconds
Rendering finished.


that'a in the file
https://github.com/nohkumado/spulenhalter/blob/master/Spulenhalterschraube.scad
that calls https://github.com/nohkumado/spulenhalter/blob/master/knauf.scad
and adds the thread...
 
without the minkovsky transform, no problem, preview and compile work, with
the transform, the preview is ok, but the compile fails :'( what'ß going
wrong? anyway to fix this?

thanks!
Bruno



--
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: need help for beveling/smoothing

bboett
ok.....
while trying to print the other part, that compiled..... i noticed that the
insert for the bearing was missing....
i commented the difference in
https://github.com/nohkumado/spulenhalter/blob/master/Spulenhalterschraube.scad 
to make the insert visible, its there, and it should remove its slice from
the minkovsky transformed handle, shouldn't it?

while it does work on the other end of the holder, it doesn't work on the
handle :(
that makes it really strange for me....

any light welcome!

Bruno



--
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: need help for beveling/smoothing

bboett
even stranger....
i printed the thing anyway.... so i noticed, that instead of subtracting the bearing-encroaching, it made a union?????
stranger and stranger....

good evening....
Bruno

Am Do., 11. Juli 2019 um 19:59 Uhr schrieb bboett <[hidden email]>:
ok.....
while trying to print the other part, that compiled..... i noticed that the
insert for the bearing was missing....
i commented the difference in
https://github.com/nohkumado/spulenhalter/blob/master/Spulenhalterschraube.scad
to make the insert visible, its there, and it should remove its slice from
the minkovsky transformed handle, shouldn't it?

while it does work on the other end of the holder, it doesn't work on the
handle :(
that makes it really strange for me....

any light welcome!

Bruno



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

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


--
ciao
Bruno

===========================================
http://nohkumado.eu/, http://aikido.nohkumado.eu/,
http://aikido.zorn.free.fr

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

Re: need help for beveling/smoothing

MichaelAtOz
Administrator
What threads.scad are you using?

I've got this dated 2015-01-24


> /*
>  * Dan Kirshner - [hidden email]
>  *
>  * You are welcome to make free use of this software.  Retention of my
>  * authorship credit would be appreciated.
>  *
>  * Version 1.4.  2014-10-17   Use "faces" instead of "triangles" for
> polyhedron
>  * Version 1.3.  2013-12-01   Correct loop over turns -- don't have early
> cut-off
>  * Version 1.2.  2012-09-09   Use discrete polyhedra rather than
> linear_extrude()
>  * Version 1.1.  2012-09-07   Corrected to right-hand threads!
>  */
> // Examples:
> metric_thread(25, 26, 9);
> //english_thread(1/4, 20, 1);
>
> // Rohloff hub thread:
> //metric_thread(34, 1, 10, internal=true, n_starts=6);
> ...

Note the uncommented example.
When I render that I get errors.
Your code does 'include <threads.scad>' rather than 'use <...>'
So if it is the same thread.scad, it will call that example & get that
error.
But assuming you may have commented out that example, it still gets:

ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_FM_decorator.h
Line: 426

This is an error in threads.scad.








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

Re: need help for beveling/smoothing

MichaelAtOz
Administrator
Sorry spoke to soon [again...].

In knauf.scad, if I do

knauf(29,50);
 cube();

I get the error. Probably your polygons.
I'll have a look, but need to use another PC.



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

Re: need help for beveling/smoothing

MichaelAtOz
Administrator
No poly's are good.
This is the F5 before F6 problem, ie bug in OpenSCAD.
Do Design/flush-caches before doing F6, no error. Or just F6 on a fresh run
of OpenSCAD.

From my recollection when I last tried to drill down, it is the combination
of minkowski & linear_extrude that triggers the problem. Suspect conversion
of floats to ints for clipper & back.



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

Re: need help for beveling/smoothing

bboett
wow... that did it !

any chance that bug gets fixed soon?

anyway, thanks Michael!

ciao
Bruno



Am Fr., 12. Juli 2019 um 05:09 Uhr schrieb MichaelAtOz <[hidden email]>:
No poly's are good.
This is the F5 before F6 problem, ie bug in OpenSCAD.
Do Design/flush-caches before doing F6, no error. Or just F6 on a fresh run
of OpenSCAD.

From my recollection when I last tried to drill down, it is the combination
of minkowski & linear_extrude that triggers the problem. Suspect conversion
of floats to ints for clipper & back.



-----
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!
--
Sent from: http://forum.openscad.org/

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


--
ciao
Bruno

===========================================
http://nohkumado.eu/, http://aikido.nohkumado.eu/,
http://aikido.zorn.free.fr

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

Re: need help for beveling/smoothing

MichaelAtOz
Administrator
bboett wrote
> any chance that bug gets fixed soon?

I raised an  issue <https://github.com/openscad/openscad/issues/2991>   to
address it, as you can see it is an insidious bug.




-----
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!
--
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!