Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(186) | Call(186) | Derive(0) | Import(0)
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/oozebane.py SkeinFox(Download)
def addAfterStartupLine( self, splitLine ): "Add the after startup lines." distanceAfterThreadBeginning = self.getDistanceAfterThreadBeginning() location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location
self.extruderInactiveLongEnough = False self.isStartupEarly = True location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location segmentLength = segment.magnitude()
splitLine = gcodec.getSplitLineBeforeBracketSemicolon( line ) distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ self.shutdownStepIndex ] ) location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) if distanceThreadEnd == None: distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ 0 ] )
def getDistanceAfterThreadBeginning( self ): "Get the distance after the beginning of the thread." line = self.lines[ self.lineIndex ] splitLine = gcodec.getSplitLineBeforeBracketSemicolon( line ) lastThreadLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
firstWord = gcodec.getFirstWord( splitLine ) if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( lastThreadLocation, splitLine ) totalDistance += location.distance( lastThreadLocation ) lastThreadLocation = location
src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/oozebane.py SkeinFox(Download)
def addAfterStartupLine( self, splitLine ): "Add the after startup lines." distanceAfterThreadBeginning = self.getDistanceAfterThreadBeginning() location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location
self.extruderInactiveLongEnough = False self.isStartupEarly = True location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location segmentLength = segment.magnitude()
splitLine = line.split() distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ self.shutdownStepIndex ] ) location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) if distanceThreadEnd == None: distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ 0 ] )
def getDistanceAfterThreadBeginning( self ): "Get the distance after the beginning of the thread." line = self.lines[ self.lineIndex ] splitLine = line.split() lastThreadLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
firstWord = gcodec.getFirstWord( splitLine ) if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( lastThreadLocation, splitLine ) totalDistance += location.distance( lastThreadLocation ) lastThreadLocation = location
src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/oozebane.py SkeinFox(Download)
def addAfterStartupLine( self, splitLine ): "Add the after startup lines." distanceAfterThreadBeginning = self.getDistanceAfterThreadBeginning() location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location
self.extruderInactiveLongEnough = False self.isStartupEarly = True location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) segment = self.oldLocation - location segmentLength = segment.magnitude()
splitLine = line.split() distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ self.shutdownStepIndex ] ) location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) if distanceThreadEnd == None: distanceThreadEnd = self.getDistanceToExtruderOffCommand( self.earlyShutdownDistances[ 0 ] )
def getDistanceAfterThreadBeginning( self ): "Get the distance after the beginning of the thread." line = self.lines[ self.lineIndex ] splitLine = line.split() lastThreadLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
firstWord = gcodec.getFirstWord( splitLine ) if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( lastThreadLocation, splitLine ) totalDistance += location.distance( lastThreadLocation ) lastThreadLocation = location
src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/fillet.py SkeinFox(Download)
splitLine = line.split( ' ' ) if gcodec.getFirstWord( splitLine ) == 'G1': nextLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) return nextLocation return None
def linearMove( self, splitLine ): "Bevel a linear move." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) self.feedrateMinute = gcodec.getFeedrateMinute( self.feedrateMinute, splitLine ) if self.oldLocation != None:
src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/fillet.py SkeinFox(Download)
splitLine = line.split( ' ' ) if gcodec.getFirstWord( splitLine ) == 'G1': nextLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) return nextLocation return None
def linearMove( self, splitLine ): "Bevel a linear move." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) self.feedrateMinute = gcodec.getFeedrateMinute( self.feedrateMinute, splitLine ) if self.oldLocation != None:
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/fillet.py SkeinFox(Download)
splitLine = gcodec.getSplitLineBeforeBracketSemicolon( line ) if gcodec.getFirstWord( splitLine ) == 'G1': nextLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) return nextLocation return None def linearMove( self, splitLine ): "Bevel a linear move." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/clip.py SkeinFox(Download)
isLoop = True elif firstWord == 'G1': location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) elif firstWord == 'M101': if not isLoop:
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:
firstWord = gcodec.getFirstWord( splitLine ) if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( oldLocation, splitLine ) if extruderActive and oldLocation != None: self.addSegmentToPixelTables( location, maskPixelTable, oldLocation )
boundaryLoop = [] self.boundaryLoops.append( boundaryLoop ) location = gcodec.getLocationFromSplitLine( None, splitLine ) boundaryLoop.append( location.dropAxis( 2 ) ) elif firstWord == '(</layer>)':
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/dimension.py SkeinFox(Download)
def getDimensionedArcMovement( self, line, splitLine ): "Get an dimensioned arc movement." if self.oldLocation == None: return line relativeLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
def getDimensionedLinearMovement( self, line, splitLine ): "Get an dimensioned linear movement." distance = 0.0 if self.distanceFeedRate.absoluteDistanceMode: location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine )
print( 'Warning: There was no absolute location when the G91 command was parsed, so the absolute location will be set to the origin.' ) self.oldLocation = Vector3() location = gcodec.getLocationFromSplitLine( None, splitLine ) distance = abs( location ) self.oldLocation += location
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/cool.py SkeinFox(Download)
firstWord = gcodec.getFirstWord( splitLine ) if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( lastThreadLocation, splitLine ) feedRateMinute = gcodec.getFeedRateMinute( feedRateMinute, splitLine ) if lastThreadLocation != None:
firstWord = splitLine[ 0 ] if firstWord == 'G1': location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) line = self.getCoolMove( line, location, splitLine ) self.oldLocation = location
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/unpause.py SkeinFox(Download)
return line self.feedRateMinute = gcodec.getFeedRateMinute( self.feedRateMinute, splitLine ) relativeLocation = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) location = self.oldLocation + relativeLocation self.oldLocation = location
def getUnpausedLinearMovement( self, line, splitLine ): "Get an unpaused linear movement." location = gcodec.getLocationFromSplitLine( self.oldLocation, splitLine ) unpausedFeedRateMinute = self.getUnpausedFeedRateMinute( location, splitLine ) self.oldLocation = location
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next