コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }