pressit_catears: dynamic step size for ear iterations
This commit is contained in:
parent
ab18f4751f
commit
8eea4b59d8
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
/* use manifold backend, CGAL can't hanlde this */
|
||||||
|
|
||||||
include <globals.scad>;
|
include <globals.scad>;
|
||||||
|
|
||||||
use <catear_headband.scad>;
|
use <catear_headband.scad>;
|
||||||
|
@ -10,7 +12,7 @@ EAR_STRETCH_FACTOR = 1.2;
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
translate([20*pow(0.99, SIZE/2*EAR_SCALE-1-THICKNESS), 0, -THICKNESS/2])
|
translate([20*pow(0.99, SIZE/2*EAR_SCALE-1-THICKNESS), 0, -THICKNESS/2])
|
||||||
union() for (i=[0:SIZE/2*EAR_SCALE-1]) {
|
union() for (i=[0:1/EAR_STRETCH_FACTOR:SIZE/2*EAR_SCALE-1]) {
|
||||||
j=pow(0.99, i);
|
j=pow(0.99, i);
|
||||||
chamfer_ = floor(abs(2*i/(SIZE/2*EAR_SCALE-1)-1));
|
chamfer_ = floor(abs(2*i/(SIZE/2*EAR_SCALE-1)-1));
|
||||||
translate([-j*20, 0, 0])
|
translate([-j*20, 0, 0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue