how to speed up minkowski

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

how to speed up minkowski

khackbarth

$fn=50;

 

length = 25;

finger_pull_radius = 5;

thickness = 3;

 

minkowski(){

                difference(){

                                hull(){

                                                //grip

                                                translate([length+finger_pull_radius, 0, 0])

                                                cylinder(h=thickness, r=10, center = true);

 

                                                //base

                                                cube([10,5,thickness], center=true);

                                }

                                translate([length+finger_pull_radius, 0, 0])

                                cylinder(h=thickness+0.01, r=5, center = true);

                                }

 

sphere(r=1);

}

 

How can I speed up the process?

 

 

Thanks,

Ken

 


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

Re: how to speed up minkowski

shadowwynd
The only way in your code is to decrease $fn only for the sphere you are
using for the minkowski operation.

Like this:

sphere (r=1, $fn=10);


Increase it in very small increments - you are trading off processor time
for smoothness, as it were.  Depending on the size of a 3D printed part, you
may not see the extra smoothness of a high $fn value.

For example, your code with the the above modification took about 20 seconds
on my PC, and your original code is still spinning.



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

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