fixup! [WIP] primitives library
This commit is contained in:
parent
05f2758275
commit
cfc13bbc13
2 changed files with 2 additions and 8 deletions
|
@ -1,13 +1,7 @@
|
||||||
include <globals.scad>
|
include <globals.scad>
|
||||||
|
include <primitives.scad>
|
||||||
use <chamfer.scad>
|
use <chamfer.scad>
|
||||||
|
|
||||||
module partial_ring(part, radius, thickness, height) {
|
|
||||||
rotate(180-180*part, [0, 0, 1])
|
|
||||||
rotate_extrude(angle=360*part)
|
|
||||||
translate([radius, 0])
|
|
||||||
square([thickness, height], center=true);
|
|
||||||
}
|
|
||||||
|
|
||||||
module headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNESS, part=PART, stretch_len=STRETCH_LEN, tip_len=TIP_LEN, tip_bend=TIP_BEND, rake_depth=RAKE_DEPTH, rake_width=RAKE_WIDTH, rake_stretch=RAKE_STRETCH, rake_chamfer=RAKE_CHAMFER, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE, with_rake=true, details=true) {
|
module headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNESS, part=PART, stretch_len=STRETCH_LEN, tip_len=TIP_LEN, tip_bend=TIP_BEND, rake_depth=RAKE_DEPTH, rake_width=RAKE_WIDTH, rake_stretch=RAKE_STRETCH, rake_chamfer=RAKE_CHAMFER, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE, with_rake=true, details=true) {
|
||||||
union() {
|
union() {
|
||||||
chamfer(size=(details)?chamfer:0, child_h=height, child_bot=-height/2, shape=chamfer_shape) union() {
|
chamfer(size=(details)?chamfer:0, child_h=height, child_bot=-height/2, shape=chamfer_shape) union() {
|
||||||
|
|
|
@ -17,7 +17,7 @@ difference() {
|
||||||
translate([-j*20, 0, 0])
|
translate([-j*20, 0, 0])
|
||||||
rotate(90, [0, 1, 0])
|
rotate(90, [0, 1, 0])
|
||||||
/*chamfer(size=1, child_h=1, child_bot=-0.5, shape=CHAMFER_SHAPE)*/
|
/*chamfer(size=1, child_h=1, child_bot=-0.5, shape=CHAMFER_SHAPE)*/
|
||||||
catear(
|
catear_v1(
|
||||||
debug=DEBUG,
|
debug=DEBUG,
|
||||||
height=INSERTICLE_Z*1.2,
|
height=INSERTICLE_Z*1.2,
|
||||||
thickness=THICKNESS,
|
thickness=THICKNESS,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue