def getStretchedLine( self, splitLine ): "Get stretched gcode line." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) self.feedrateMinute = gcodec.getFeedrateMinute( self.feedrateMinute, splitLine ) if self.oldLocation != None: self.addStretchesBeforePoint( location ) self.oldLocation = location return self.getStretchedLineFromIndexLocation( self.lineIndex - 1, self.lineIndex + 1, location )
def linearMove( self, splitLine ): "Add a linear move to the loop." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) self.feedrateMinute = gcodec.getFeedrateMinute( self.feedrateMinute, splitLine ) self.feedrateTable[ location ] = self.feedrateMinute if self.extruderActive: self.addToExtrusion( location ) self.oldLocation = location
def linearMove(self, splitLine): "Add a linear move to the loop." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedrateMinute = gcodec.getFeedrateMinute(self.feedrateMinute, splitLine) self.feedrateTable[location] = self.feedrateMinute if self.extruderActive: self.addToExtrusion(location) self.oldLocation = location
def getStretchedLine(self, splitLine): "Get stretched gcode line." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedrateMinute = gcodec.getFeedrateMinute(self.feedrateMinute, splitLine) if self.oldLocation != None: self.addStretchesBeforePoint(location) self.oldLocation = location return self.getStretchedLineFromIndexLocation(self.lineIndex - 1, self.lineIndex + 1, location)
def linearMove( self, splitLine ): "Bevel a linear move." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) self.feedrateMinute = gcodec.getFeedrateMinute( self.feedrateMinute, splitLine ) if not self.extruderActive: return if self.oldActiveLocation != None: nextActive = self.getNextActive() if nextActive != None: self.shouldAddLine = False location = self.splitPointGetAfter( location, nextActive, self.oldActiveLocation ) self.oldActiveLocation = location
def linearMove(self, splitLine): "Bevel a linear move." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.feedrateMinute = gcodec.getFeedrateMinute(self.feedrateMinute, splitLine) if not self.extruderActive: return if self.oldActiveLocation != None: nextActive = self.getNextActive() if nextActive != None: self.shouldAddLine = False location = self.splitPointGetAfter(location, nextActive, self.oldActiveLocation) self.oldActiveLocation = location