Esempio n. 1
0
 public void setCombBoundary(Polygons polygons)
 {
     if (polygons != null)
     {
         avaidCrossingPerimeters = new AvoidCrossingPerimeters(polygons);
     }
     else
     {
         avaidCrossingPerimeters = null;
     }
 }
Esempio n. 2
0
 public void SetOuterPerimetersToAvoidCrossing(Polygons polygons)
 {
     if (polygons != null)
     {
         outerPerimetersToAvoidCrossing = new AvoidCrossingPerimeters(polygons);
     }
     else
     {
         outerPerimetersToAvoidCrossing = null;
     }
 }
Esempio n. 3
0
        public GCodePlanner(GCodeExport gcode, int travelSpeed, int retractionMinimumDistance)
        {
            this.gcode   = gcode;
            travelConfig = new GCodePathConfig(travelSpeed, 0, "travel");

            lastPosition = gcode.getPositionXY();
            outerPerimetersToAvoidCrossing = null;
            extrudeSpeedFactor             = 100;
            travelSpeedFactor              = 100;
            extraTime                      = 0.0;
            totalPrintTime                 = 0.0;
            forceRetraction                = false;
            alwaysRetract                  = false;
            currentExtruderIndex           = gcode.getExtruderIndex();
            this.retractionMinimumDistance = retractionMinimumDistance;
        }
Esempio n. 4
0
        public GCodePlanner(GCodeExport gcode, int travelSpeed, int retractionMinimumDistance_um)
        {
            this.gcode = gcode;
            travelConfig = new GCodePathConfig(travelSpeed, 0, "travel");

            lastPosition = gcode.GetPositionXY();
            outerPerimetersToAvoidCrossing = null;
            extrudeSpeedFactor = 100;
            travelSpeedFactor = 100;
            extraTime = 0.0;
            totalPrintTime = 0.0;
            forceRetraction = false;
            alwaysRetract = false;
            currentExtruderIndex = gcode.GetExtruderIndex();
            this.retractionMinimumDistance_um = retractionMinimumDistance_um;
        }
Esempio n. 5
0
        public GCodePlanner(GCodeExport gcode, int travelSpeed, int retractionMinimumDistance_um, double perimeterStartEndOverlap = 0)
        {
            this.gcodeExport = gcode;
            travelConfig     = new GCodePathConfig("travelConfig");
            travelConfig.SetData(travelSpeed, 0, "travel");

            LastPosition = gcode.GetPositionXY();
            outerPerimetersToAvoidCrossing = null;
            extrudeSpeedFactor             = 100;
            travelSpeedFactor    = 100;
            extraTime            = 0.0;
            totalPrintTime       = 0.0;
            forceRetraction      = false;
            alwaysRetract        = false;
            currentExtruderIndex = gcode.GetExtruderIndex();
            this.retractionMinimumDistance_um = retractionMinimumDistance_um;

            this.perimeterStartEndOverlapRatio = Math.Max(0, Math.Min(1, perimeterStartEndOverlap));
        }
Esempio n. 6
0
        public GCodePlanner(GCodeExport gcode, int travelSpeed, int retractionMinimumDistance_um, double perimeterStartEndOverlap = 0)
        {
            this.gcodeExport = gcode;
            travelConfig =  new GCodePathConfig("travelConfig");
            travelConfig.SetData(travelSpeed, 0, "travel");

            LastPosition = gcode.GetPositionXY();
            outerPerimetersToAvoidCrossing = null;
            extrudeSpeedFactor = 100;
            travelSpeedFactor = 100;
            extraTime = 0.0;
            totalPrintTime = 0.0;
            forceRetraction = false;
            alwaysRetract = false;
            currentExtruderIndex = gcode.GetExtruderIndex();
            this.retractionMinimumDistance_um = retractionMinimumDistance_um;

            this.perimeterStartEndOverlapRatio = Math.Max(0, Math.Min(1, perimeterStartEndOverlap));
        }
Esempio n. 7
0
 public void SetOuterPerimetersToAvoidCrossing(Polygons polygons)
 {
     if (polygons != null)
     {
         outerPerimetersToAvoidCrossing = new AvoidCrossingPerimeters(polygons);
     }
     else
     {
         outerPerimetersToAvoidCrossing = null;
     }
 }