From de20fc8636a6fe88af9508a2f6c7e77efca8d569 Mon Sep 17 00:00:00 2001 From: maride Date: Mon, 22 Jan 2018 16:55:34 +0100 Subject: [PATCH] Update darknebula Logo --- Logo_darknebula.scad | 46 +++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/Logo_darknebula.scad b/Logo_darknebula.scad index 17c74c9..5a4d948 100644 --- a/Logo_darknebula.scad +++ b/Logo_darknebula.scad @@ -1,25 +1,31 @@ -RESOLUTION=180; +module hexagon(size) { + rotate([0, 0, 360/12]) + circle(d=size, $fn=6); +} + +module star(bar_amount, bar_width, bar_length) { + for(i = [0 : 360/bar_amount: 360/2-1]) { + rotate([0, 0, i]) + square([bar_width, bar_length], center=true); + } +} difference() { + // *** THE CLOUD *** union() { - translate([-4, -1]) - circle(r=3, $fn=RESOLUTION); - circle(r=5, $fn=RESOLUTION); - translate([6, 0]) - circle(r=7, $fn=RESOLUTION); - translate([12, 2]) - circle(r=4, $fn=RESOLUTION); - translate([13, -1]) - circle(r=5, $fn=RESOLUTION); - } - - union() { - translate([6, 0]) { - square([1, 6], center=true); - rotate([0, 0, 120]) - square([1, 6], center=true); - rotate([0, 0, 240]) - square([1, 6], center=true); - } + // middle + hexagon(10); + // left branch + translate([-2.5, 0]) + hexagon(8); + translate([-6, -1]) + hexagon(4); + // right branch + translate([3, 2]) + hexagon(4); + translate([4.5, -1]) + hexagon(5); } + // *** THE STAR *** + star(6, 0.75, 4); } \ No newline at end of file