Discussion:
[OpenSCAD] how to speed up minkowski
k***@volksswitch.org
2018-08-08 17:37:37 UTC
Permalink
$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
shadowwynd
2018-08-08 18:25:30 UTC
Permalink
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/

Loading...