revert pass thru topo4 z bottom. move taper angle rounding to ui code

This commit is contained in:
Stewart Allen 2023-02-19 08:35:10 -05:00
commit c391bae399
3 changed files with 6 additions and 6 deletions

View file

@ -166,11 +166,11 @@ class Tool {
CAM.Tool = Tool;
CAM.calcTaperAngle = function(rad, len) {
return (Math.atan(rad / len) * RAD2DEG).round(1);
return (Math.atan(rad / len) * RAD2DEG);
};
CAM.calcTaperLength = function(rad, angle) {
return rad / Math.tan(angle);
return (rad / Math.tan(angle));
};
CAM.getToolDiameter = function(settings, id) {

View file

@ -289,7 +289,7 @@ class Topo4 {
}
}
if (mz === -Infinity) {
mz = Math.max(lz, 0);
mz = zBottom; // Math.min(0, lz)
} else if (zBottom && mz < zBottom) {
mz = zBottom;
}