JT
jose tav
Wed, Feb 25, 2015 3:21 AM
what I have to add to the code to make rounded edges at the top?
$fa = 5;$fs = 0.1;
height = 60;length = 90 / 2;width = 55;wall = 2.2;irad = 8;orad = irad + wall;
hull() //interior modulefor(end = [-1,1])for(side = [-1,1])translate([end * (length / 2 - wall - irad), side * (width / 2 - wall - irad), wall + irad]) { cylinder(r = irad, h = height); sphere(irad); //makes a nice interior concave edge }
Thanks for your help
what I have to add to the code to make rounded edges at the top?
$fa = 5;$fs = 0.1;
height = 60;length = 90 / 2;width = 55;wall = 2.2;irad = 8;orad = irad + wall;
hull() //interior modulefor(end = [-1,1])for(side = [-1,1])translate([end * (length / 2 - wall - irad), side * (width / 2 - wall - irad), wall + irad]) { cylinder(r = irad, h = height); sphere(irad); //makes a nice interior concave edge }
Thanks for your help
H
hagen
Wed, Feb 25, 2015 6:31 AM
by not using the cylinder and having a sphere at the 8 corners.
hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
sphere(10);
--
View this message in context: http://forum.openscad.org/hull-tp11755p11756.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
by not using the cylinder and having a sphere at the 8 corners.
hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
sphere(10);
--
View this message in context: http://forum.openscad.org/hull-tp11755p11756.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Wed, Feb 25, 2015 9:55 PM
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. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/hull-tp11755p11769.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
-----
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. This work is published globally via the internet. :) 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/
--
View this message in context: http://forum.openscad.org/hull-tp11755p11769.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Wed, Feb 25, 2015 9:58 PM
oops again... :(
hagen wrote
hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
sphere(10);
That takes an unduly long time to F5 for me, 23s.
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. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/hull-tp11755p11770.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
oops again... :(
hagen wrote
> hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
> sphere(10);
That takes an unduly long time to F5 for me, 23s.
-----
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. This work is published globally via the internet. :) 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/
--
View this message in context: http://forum.openscad.org/hull-tp11755p11770.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Wed, Feb 25, 2015 10:29 PM
That takes an unduly long time to F5 for me, 23s.
Yes, unfortunately, the implicit union strikes back.
Using the issue350 branch, it’s down to < 1 second.
Unrolling the loop is a good workaround for now.
-Marius
On Feb 25, 2015, at 16:58 PM, MichaelAtOz <oz.at.michael@gmail.com> wrote:
>
> That takes an unduly long time to F5 for me, 23s.
>
Yes, unfortunately, the implicit union strikes back.
Using the issue350 branch, it’s down to < 1 second.
Unrolling the loop is a good workaround for now.
-Marius
H
hagen
Wed, Feb 25, 2015 10:32 PM
certainly not fast. F5 16sec for me (2014.03)
--
View this message in context: http://forum.openscad.org/hull-tp11755p11773.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
certainly not fast. F5 16sec for me (2014.03)
--
View this message in context: http://forum.openscad.org/hull-tp11755p11773.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Wed, Feb 25, 2015 10:39 PM
On 02/25/2015 11:32 PM, hagen wrote:
certainly not fast. F5 16sec for me (2014.03)
As Marius mentioned, it's the for() that's causing the performance hit.
Unrolling the loop will make it render instantly:
hull() {
translate(30*[0,0,0]) sphere(10);
translate(30*[0,0,1]) sphere(10);
translate(30*[0,1,0]) sphere(10);
translate(30*[0,1,1]) sphere(10);
translate(30*[1,0,0]) sphere(10);
translate(30*[1,0,1]) sphere(10);
translate(30*[1,1,0]) sphere(10);
translate(30*[1,1,1]) sphere(10);
}
ciao,
Torsten.
On 02/25/2015 11:32 PM, hagen wrote:
> certainly not fast. F5 16sec for me (2014.03)
>
As Marius mentioned, it's the for() that's causing the performance hit.
Unrolling the loop will make it render instantly:
hull() {
translate(30*[0,0,0]) sphere(10);
translate(30*[0,0,1]) sphere(10);
translate(30*[0,1,0]) sphere(10);
translate(30*[0,1,1]) sphere(10);
translate(30*[1,0,0]) sphere(10);
translate(30*[1,0,1]) sphere(10);
translate(30*[1,1,0]) sphere(10);
translate(30*[1,1,1]) sphere(10);
}
ciao,
Torsten.
JT
jose tav
Wed, Feb 25, 2015 11:37 PM
wow!! that simple and short!I thought I am taken baby steps on openscad, now you make me feel like I am still in the womb
thanks a lot Hagen,
On Tuesday, February 24, 2015 10:31 PM, hagen <temp4pieter@hotmail.com> wrote:
by not using the cylinder and having a sphere at the 8 corners.
hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
sphere(10);
--
View this message in context: http://forum.openscad.org/hull-tp11755p11756.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
wow!! that simple and short!I thought I am taken baby steps on openscad, now you make me feel like I am still in the womb
thanks a lot Hagen,
On Tuesday, February 24, 2015 10:31 PM, hagen <temp4pieter@hotmail.com> wrote:
by not using the cylinder and having a sphere at the 8 corners.
hull() for(x=[0,1]) for(y=[0,1]) for(z=[0,1]) translate(30*[x,y,z])
sphere(10);
--
View this message in context: http://forum.openscad.org/hull-tp11755p11756.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
S
stonysmith
Thu, Feb 26, 2015 2:51 AM
I too am getting the 16 seconds versus < 1.
That's ugly!
--
View this message in context: http://forum.openscad.org/hull-tp11755p11778.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I too am getting the 16 seconds versus < 1.
That's ugly!
--
View this message in context: http://forum.openscad.org/hull-tp11755p11778.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Thu, Feb 26, 2015 3:06 AM
I too am getting the 16 seconds versus < 1.
That's ugly!
It will stil be relatively slow in 2014.03.
It’s optimized to <1 sec in 2015.02.
-Marius
On Feb 25, 2015, at 21:51 PM, stonysmith <stonysmith@gmail.com> wrote:
> I too am getting the 16 seconds versus < 1.
> That's ugly!
>
It will stil be relatively slow in 2014.03.
It’s optimized to <1 sec in 2015.02.
-Marius