discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

how to speed up minkowski

K
ken@volksswitch.org
Wed, Aug 8, 2018 5:37 PM

$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

$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
S
shadowwynd
Wed, Aug 8, 2018 6:25 PM

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/

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/