fix involute gear cutting
it had the same bug bevel gear cutting did. how surprising...
This commit is contained in:
parent
b51356acd0
commit
3873c9a557
11
src/main.rs
11
src/main.rs
|
|
@ -195,13 +195,14 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
for (k, r) in inv_shape.iter_mut().enumerate() {
|
for (k, r) in inv_shape.iter_mut().enumerate() {
|
||||||
loop {
|
let mut test_r = *r;
|
||||||
let xy = kr_to_xy(k, *r);
|
while test_r > r_pitch - gear_profile_adj.dedendum {
|
||||||
|
let xy = kr_to_xy(k, test_r);
|
||||||
let cut_y = inv_cutter_y_at_x(xy.x);
|
let cut_y = inv_cutter_y_at_x(xy.x);
|
||||||
if cut_y < xy.y {
|
if cut_y > xy.y {
|
||||||
break;
|
*r = test_r;
|
||||||
}
|
}
|
||||||
*r -= 0.01;
|
test_r -= 0.01;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user