mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-09-13 15:49:50 +00:00
Add common examples
I want to keep the primary documentation digestible, but there are a lot of common use-cases that are a little tricky to figure out. I'm going to start adding those to the examples directory
This commit is contained in:
parent
65b464ed3e
commit
30e82fc442
3 changed files with 79 additions and 0 deletions
29
examples/multimaterial_key_top.scad
Normal file
29
examples/multimaterial_key_top.scad
Normal file
|
@ -0,0 +1,29 @@
|
|||
include <../includes.scad>
|
||||
|
||||
/* use this file to generate multimaterial models for making keycaps with a
|
||||
different material for the key top.
|
||||
|
||||
This would be great to use with flexible filament, to make squishy-topped
|
||||
keys.
|
||||
|
||||
You don't need a multimaterial printer to use these files since it's hard
|
||||
height cutoff. You could print the bottom, leave the prints on the bed, and
|
||||
then print the top in a different material. Be careful though! your start
|
||||
gcode may crash into the prints.
|
||||
*/
|
||||
|
||||
depth = 1;
|
||||
// swap the debug()s to render opposite part
|
||||
/* debug() */ difference() { // intersection() {
|
||||
key();
|
||||
top_of_key() {
|
||||
translate([-total_key_width(),-total_key_height(),-$total_depth - depth]) cube([total_key_width()*2, total_key_height()*2, $total_depth]);
|
||||
}
|
||||
}
|
||||
|
||||
debug() intersection() {
|
||||
key();
|
||||
top_of_key() {
|
||||
translate([-total_key_width(),-total_key_height(),-$total_depth - depth]) cube([total_key_width()*2, total_key_height()*2, $total_depth]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue