Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exporting for dual extruder support #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion customizer.scad
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ $rounded_key = false;
//minkowski radius. radius of sphere used in minkowski sum for minkowski_key function. 1.75 for G20
$minkowski_radius = .33;

//Outputs only inverse of inset text, used to print inset filled with different color on dual extruder printers
$output_text_inset_only = false;

//3D printers use the bottom left as the origin, inputting your buildplate width/2 will center 3mf files when slicing.
$offset_x = 0;

//3D printers use the bottom left as the origin, inputting your buildplate height/2 will center 3mf files when slicing.
$offset_y = 0;

/* [Features] */

//insert locating bump
Expand Down Expand Up @@ -4264,6 +4273,13 @@ module hollow_key() {
}
}

module inset_text() {
translate([0, 0, .001]) color("black") intersection() {
if (inset && $children > 0) artisan($inset_legend_depth) children();
if(!$outset_legends) legends($inset_legend_depth);
hollow_key();
}
}

// The final, penultimate key generation function.
// takes all the bits and glues them together. requires configuration with special variables.
Expand Down Expand Up @@ -4521,5 +4537,11 @@ if (!$using_customizer) {
}

key_profile(key_profile, row) legend(legend) {
key();
translate([$offset_x, $offset_y, 0])

if ($output_text_inset_only) {
inset_text();
} else {
key();
}
}