public void PrimeOnWipeTower(int extruderIndex, int layerIndex, GCodePlanner gcodeLayer, GCodePathConfig fillConfig, ConfigSettings config) { if (!HaveWipeTower(config) || layerIndex > LastLayerWithChange(config) + 1) { return; } //If we changed extruder, print the wipe/prime tower for this nozzle; Polygons fillPolygons = new Polygons(); GenerateWipeTowerInfill(extruderIndex, this.wipeTower, fillPolygons, fillConfig.lineWidth_um, config); gcodeLayer.QueuePolygons(fillPolygons, fillConfig); extrudersThatHaveBeenPrimed[extruderIndex] = true; }
public void PrimeOnWipeTower(int extruderIndex, int layerIndex, GCodePlanner gcodeLayer, GCodePathConfig fillConfig, ConfigSettings config) { if (config.WipeTowerSize_um < 1 || extrudersThatHaveBeenPrimed == null || layerIndex > LastLayerWithChange(config) + 1) { return; } //If we changed extruder, print the wipe/prime tower for this nozzle; Polygons fillPolygons = new Polygons(); GenerateWipeTowerInfill(extruderIndex, this.wipeTower, fillPolygons, fillConfig.lineWidth_um, config); gcodeLayer.QueuePolygons(fillPolygons, fillConfig); extrudersThatHaveBeenPrimed[extruderIndex] = true; }