borelg wrote

> And, with slow, I mean that the executing phase (not the

> rendering, which it takes even more) it takes hours!

>

This is way too high resolution for a cookie cutter, both

the $fn=100 and also the 0.1 beziers.

The heart cookie cutter below is probably still higher

resolution than actually needed, but renders in less

than 4 minutes. The star even renders in just 14 seconds

because of the small amount of vertices in the 2D base

shape.

ciao,

Torsten.

---snip---snap---snip---snap---snip---snap---snip---snap---

// CC BY-SA 4.0

$fa = 2;

$fs = 0.4;

height = 12;

module heart(w = 30) {

translate([0, w * sqrt(2) / 2]) {

rotate(-135) {

square(w);

translate([w / 2, 0]) circle(d = w);

translate([0, w / 2]) circle(d = w);

}

}

}

module star(n = 5, r1 = 22, r2 = 40) {

function r(a) = a % 2 == 0 ? r2 : r1;

function p(a) = [ -sin(a), cos(a) ];

assert(n >= 3);

points = [ for (a = [0 : 2 * n - 1]) r(a) * p(180 / n * a) ];

polygon(points);

}

module outline() {

difference() {

offset(0.01) children();

children();

}

}

module cut(height, base_height, r1, r2) {

translate([0, 0, -base_height]) cylinder(r = 2 * r1, h = base_height);

translate([0, 0, -0.01]) cylinder(r1 = r1, r2 = r2, h = height);

}

module cookie_cutter(height = 12, base_height = 1, r1 = 0.8, r2 = 0.2) {

minkowski() {

linear_extrude(0.01) outline() children();

cut(height, base_height, r1, r2);

}

}

cookie_cutter() heart(30);

// cookie_cutter() star(5, 22, 40);

---snip---snap---snip---snap---snip---snap---snip---snap---

_______________________________________________

OpenSCAD mailing list

[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten