remove legacy cnc platform min spacing code

This commit is contained in:
Stewart Allen 2024-08-17 18:08:59 -04:00
commit 0eb6cbf48c

View file

@ -684,13 +684,7 @@ function platformLayout() {
return space.update();
}
// in CNC mode with >1 widget, force layout with spacing @ 1.5x largest tool diameter
if (MODE === MODES.CAM && api.widgets.count() > 1) {
let spacing = gap || 1, CAM = driver.CAM;
if (process.camRoughOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, process.camRoughTool));
if (process.camOutlineOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, process.camOutlineTool));
gap = spacing * 1.5;
}
// TODO: in CNC mode with >1 widget, force layout min spacing @ largest tool diameter
// space parts to account for anchor in belt mode
if (isBelt) {