private void preSetup(int extrusionWidth) { skirtConfig.setData(config.insidePerimetersSpeed, extrusionWidth, "SKIRT"); inset0Config.setData(config.outsidePerimeterSpeed, extrusionWidth, "WALL-OUTER"); insetXConfig.setData(config.insidePerimetersSpeed, extrusionWidth, "WALL-INNER"); fillConfig.setData(config.infillSpeed, extrusionWidth, "FILL", false); bridgConfig.setData(config.bridgeSpeed, extrusionWidth, "BRIDGE"); supportNormalConfig.setData(config.supportMaterialSpeed, extrusionWidth, "SUPPORT"); supportInterfaceConfig.setData(config.supportMaterialSpeed, extrusionWidth, "SUPPORT-INTERFACE"); for (int extruderIndex = 0; extruderIndex < ConfigConstants.MAX_EXTRUDERS; extruderIndex++) { gcode.SetExtruderOffset(extruderIndex, config.extruderOffsets[extruderIndex], -config.zOffset_um); } gcode.SetOutputType(config.outputType); gcode.SetRetractionSettings(config.retractionOnTravel, config.retractionSpeed, config.retractionOnExtruderSwitch, config.minimumExtrusionBeforeRetraction, config.retractionZHop, config.wipeAfterRetraction, config.unretractExtraExtrusion); gcode.SetToolChangeCode(config.toolChangeCode); }