Commit 3e004344 authored by Cedrick Copol's avatar Cedrick Copol

Logo imprimable du fablab de jarry

parent ca0ddc5b
This diff is collapsed.
include <MCAD/2Dshapes.scad>
height = 3;
diam = 84.136;
// ------- Ne rien modifier ici -------
ellHeight=20;
ellWidth=30;
offsetHexCir = 3;
hexDiam = diam -2*offsetHexCir ;//77*cos(30);
// decoupe
widthCut = 2.815;
// Jonction hexagon et ellipses
widthJoin = 13.276;
tx = 116.995 - 133.679;
ty = 184.645 - 209.155;
$fn=100;
union(){
difference(){
cylinder(d=diam,h=height);
translate([0,0,-height]) myHexagon(hexDiam/2, 2.5*height);
for (alpha= [-120,0,120])
rotate([0,0,alpha])
translate([0,-diam/2+offsetHexCir,0])cube([widthCut,2.5*offsetHexCir,2.5*height],center=true);
}
for (alpha= [-120,0,120])
rotate([0,0,alpha]){
translate([0,hexDiam/4,0])linear_extrude(height)ellipse(ellWidth, ellHeight);
translate([tx,ty,height/2])cube([widthJoin,20,height],center=true);
}
}
module myHexagon(rayon, height, center=false){
linear_extrude(height)
for (i = [0:6]) rotate([0,0,60*i]) polygon([[0,0],[0,rayon],rayon*[cos(30),sin(30)]]);
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment