[WIP] align chamfer
This commit is contained in:
parent
4c0d0ee417
commit
da1d122947
3 changed files with 5 additions and 4 deletions
|
@ -12,8 +12,8 @@ RAKE_WIDTH=1;
|
|||
RAKE_STRETCH=1;
|
||||
RAKE_CHAMFER=0.5;
|
||||
CHAMFER=1;
|
||||
CHAMFER_SHAPE="curve";
|
||||
CHAMFER_SHAPE="cone";
|
||||
|
||||
INSERTICLE_X = 4.6;
|
||||
INSERTICLE_Y = 7.4;
|
||||
INSERTICLE_Z = 5.4;
|
||||
INSERTICLE_Z = 5.4;
|
||||
|
|
|
@ -4,7 +4,7 @@ use <chamfer.scad>
|
|||
|
||||
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() {
|
||||
/*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() {
|
||||
color("purple")
|
||||
partial_ring(part, radius=size, thickness=thickness, height=height);
|
||||
rotate( 90-180*part, [0, 0, 1])
|
||||
|
|
|
@ -37,7 +37,8 @@ module bezier_curve_debug(control_points, $fn=$fn) {
|
|||
// c^2=2a^2 // /2
|
||||
// c^2/2=a^2 // sqrt
|
||||
// sqrt(c^2/2)=a
|
||||
chamfer_offset = function (c) sqrt((c*c)/2);
|
||||
//chamfer_offset = function (c) sqrt((c*c)/2);
|
||||
chamfer_offset = function (c) c/2;
|
||||
|
||||
rendered_curve_segment_vertices = function (p, v, n, width, height, chamfer)
|
||||
let (d=normalize(n-p)) let (up=[0, 0, 1]) let (right=normalize(cross(d, up))) [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue