Created
November 21, 2022 17:25
-
-
Save guigur/d105715cf37c0363b0540b02165cf80e to your computer and use it in GitHub Desktop.
Logo Fabriquet SCAD Couleur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cube_dim = [67,134,40]; | |
translate_dim = 12; | |
offsetmod = 0.5; | |
module offset_col(dim, side, c) | |
{ | |
offset_val = (side=="x" ? [offsetmod, -offsetmod, -offsetmod] : | |
(side=="y" ? [-offsetmod, offsetmod, -offsetmod] : | |
(side=="z" ? [-offsetmod, -offsetmod, offsetmod] : | |
[-offsetmod, -offsetmod, -offsetmod]))); | |
colors =(c=="x" ? "#68c5ed" : | |
(c=="y" ? "#16559d" : | |
(c=="z" ? "#d90077" : "#ff0000"))); | |
color(colors) cube(dim + offset_val , center=true); | |
} | |
translate([0, -translate_dim - (67/2), 0]){ | |
rotate([0,0,90]){ | |
color("#fff") cube(cube_dim, center=true); | |
offset_col(cube_dim, "x", "y"); | |
offset_col(cube_dim, "y", "x"); | |
offset_col(cube_dim, "z", "z"); | |
} | |
} | |
translate([(67/2) + translate_dim, 0, 0]){ | |
rotate([90,0,0]){ | |
color("#fff") cube(cube_dim, center=true); | |
offset_col(cube_dim, "x", "x"); | |
offset_col(cube_dim, "y", "z"); | |
offset_col(cube_dim, "z", "y"); | |
} | |
} | |
translate([0, 0, (67/2) + translate_dim]){ | |
rotate([0,90,0]){ | |
color("#fff") cube(cube_dim, center=true); | |
offset_col(cube_dim, "x", "z"); | |
offset_col(cube_dim, "y", "y"); | |
offset_col(cube_dim, "z", "x"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment