mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-09-13 15:49:50 +00:00
Better full sculpting, preliminary skin extrusion, better supports
This commit is contained in:
parent
0e3e1a9ecb
commit
f0a7b27e8c
22 changed files with 381 additions and 64 deletions
|
@ -7,6 +7,10 @@ include <shapes/rounded_square.scad>
|
|||
include <shapes/square.scad>
|
||||
include <shapes/oblong.scad>
|
||||
|
||||
// size: at progress 0, the shape is supposed to be this size
|
||||
// delta: at progress 1, the keycap is supposed to be size - delta
|
||||
// progress: how far along the transition you are.
|
||||
// it's not always linear - specifically sculpted_square
|
||||
module key_shape(size, delta, progress = 0) {
|
||||
if ($key_shape_type == "iso_enter") {
|
||||
ISO_enter_shape(size, delta, progress);
|
||||
|
@ -22,3 +26,10 @@ module key_shape(size, delta, progress = 0) {
|
|||
echo("Warning: unsupported $key_shape_type");
|
||||
}
|
||||
}
|
||||
|
||||
function skin_key_shape(size, delta, progress = 0) =
|
||||
$key_shape_type == "rounded_square" ?
|
||||
skin_rounded_square(size, delta, progress) :
|
||||
$key_shape_type == "sculpted_square" ?
|
||||
skin_sculpted_square_shape(size, delta, progress) :
|
||||
echo("Warning: unsupported $key_shape_type for skin shape. disable skin_extrude_shape or pick a new shape");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue