def linearMove(self, splitLine): "Add to loop path if this is a loop or path." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine) if self.isLoopPerimeter: if self.isNextExtruderOn(): self.loopPath = euclidean.PathZ(location.z) if self.loopPath == None: if self.extruderActive: self.oldWiddershins = None else: self.loopPath.path.append(location.dropAxis(2)) self.oldLocation = location
def setFeedRateLocationLoopPath(self, line, splitLine): 'Set the feedRateMinute, oldLocation and loopPath.' self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine) self.oldLocation = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) if not self.isLoopPerimeter or self.loopPath != None: return for afterIndex in xrange(self.lineIndex + 1, len(self.lines)): line = self.lines[afterIndex] splitLine = gcodec.getSplitLineBeforeBracketSemicolon(line) firstWord = gcodec.getFirstWord(splitLine) if firstWord == 'G1' or firstWord == 'M103': return elif firstWord == 'M101': self.loopPath = euclidean.PathZ(self.oldLocation.z) return
def getLinearMove(self, line, splitLine): "Add to loop path if this is a loop or path." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine) if self.isLoopPerimeter: if self.isNextExtruderOn(): self.loopPath = euclidean.PathZ(location.z) if self.oldLocation != None: self.beforeLoopLocation = self.oldLocation.dropAxis(2) self.oldLocation = location if self.loopPath == None: self.oldLoopLocationComplex = None return line self.loopPath.path.append(location.dropAxis(2)) return ''
def linearMove(self, splitLine): "Add to loop path if this is a loop or path." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine) if self.isLoop or self.isEdge: if self.isNextExtruderOn(): self.loopPath = euclidean.PathZ(location.z) if self.loopPath == None: if self.extruderActive: self.oldWiddershins = None else: if self.oldConnectionPoint != None: self.addSegmentToPixelTables(self.oldConnectionPoint, location.dropAxis()) self.oldConnectionPoint = None self.loopPath.path.append(location.dropAxis()) self.oldLocation = location