def addGcodeFromRemainingLoop( self, loop, radius, z ):
		'Add the remainder of the loop.'
		boundary = intercircle.getLargestInsetLoopFromLoopRegardless( loop, radius )
		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
		self.distanceFeedRate.addPerimeterBlock(loop, z)
		self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
		self.distanceFeedRate.addLine('(</nestedRing>)')
示例#2
0
	def addGcodeFromRemainingLoop( self, loop, radius, z ):
		"Add the remainder of the loop."
		boundary = intercircle.getLargestInsetLoopFromLoopRegardless( loop, radius )
		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
		self.distanceFeedRate.addPerimeterBlock(loop, z)
		self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
		self.distanceFeedRate.addLine('(</surroundingLoop>)')
示例#3
0
文件: inset.py 项目: hairykiwi/SFACT
	def addGcodeFromRemainingLoop(self, loop, loopLists, radius, rotatedLoopLayer):
		"""Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."""
		centerOutset = intercircle.getLargestCenterOutsetLoopFromLoopRegardless(loop, radius)
		euclidean.addSurroundingLoopBeginning(self.distanceFeedRate, centerOutset.outset, rotatedLoopLayer.z)
		self.addGcodePerimeterBlockFromRemainingLoop(centerOutset.center, loopLists, radius, rotatedLoopLayer)
		self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
		self.distanceFeedRate.addLine('(</nestedRing>)')
示例#4
0
	def addGcodeFromRemainingLoop( self, loop, radius, z ):
		"Add the remainder of the loop."
		boundary = intercircle.getLargestInsetLoopFromLoopNoMatterWhat( loop, radius )
		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
		self.distanceFeedRate.addPerimeterBlock( loop, z )
		self.distanceFeedRate.addLine( '(</boundaryPerimeter>)' )
		self.distanceFeedRate.addLine( '(</surroundingLoop>)' )
示例#5
0
	def addGcodeFromRemainingLoop(self, loop, loopLists, radius, rotatedLoopLayer):
		"Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
		centerOutset = intercircle.getLargestCenterOutsetLoopFromLoopRegardless(loop, radius)
		euclidean.addSurroundingLoopBeginning(self.distanceFeedRate, centerOutset.outset, rotatedLoopLayer.z)
		self.addGcodePerimeterBlockFromRemainingLoop(centerOutset.center, loopLists, radius, rotatedLoopLayer)
		self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
		self.distanceFeedRate.addLine('(</nestedRing>)')
示例#6
0
	def addGcodeFromRemainingLoop( self, loop, loopLists, radius, z ):
		"Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
		boundary = intercircle.getLargestInsetLoopFromLoopNoMatterWhat( loop, - radius )
		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
		self.addGcodePerimeterBlockFromRemainingLoop( loop, loopLists, radius, z )
		self.distanceFeedRate.addLine( '(</boundaryPerimeter>)' )
		self.distanceFeedRate.addLine( '(</surroundingLoop>)' )
示例#7
0
 def addGcodeFromRemainingLoop(self, loop, loopLists, radius, z):
     "Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
     boundary = intercircle.getLargestInsetLoopFromLoopNoMatterWhat(
         loop, -radius)
     euclidean.addSurroundingLoopBeginning(self.distanceFeedRate, boundary,
                                           z)
     self.addGcodePerimeterBlockFromRemainingLoop(loop, loopLists, radius,
                                                  z)
     self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
     self.distanceFeedRate.addLine('(</surroundingLoop>)')
	def addGcodeFromRemainingLoop( self, loop, loopLists, radius, z ):
		"Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
#		boundary = intercircle.getLargestInsetLoopFromLoopRegardless( loop, - radius )
#		loop = euclidean.getSimplifiedLoop( intercircle.getCentersFromLoopDirection( euclidean.isWiddershins(loop), loop, radius )[0], radius )
#		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
#		self.addGcodePerimeterBlockFromRemainingLoop( loop, loopLists, radius, z )
		centerOutset = intercircle.getLargestCenterOutsetLoopFromLoopRegardless( loop, radius )
		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, centerOutset.outset, z )
		self.addGcodePerimeterBlockFromRemainingLoop( centerOutset.center, loopLists, radius, z )
#		boundary = intercircle.getLargestInsetLoopFromLoopNoMatterWhat( loop, - radius )
#		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
#		self.addGcodePerimeterBlockFromRemainingLoop( loop, loopLists, radius, z )
		self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
		self.distanceFeedRate.addLine('(</nestedRing>)')
示例#9
0
 def addGcodeFromRemainingLoop(self, loop, loopLists, radius, z):
     "Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
     #		boundary = intercircle.getLargestInsetLoopFromLoopRegardless( loop, - radius )
     #		loop = euclidean.getSimplifiedLoop( intercircle.getCentersFromLoopDirection( euclidean.isWiddershins(loop), loop, radius )[0], radius )
     #		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
     #		self.addGcodePerimeterBlockFromRemainingLoop( loop, loopLists, radius, z )
     centerOutset = intercircle.getLargestCenterOutsetLoopFromLoopRegardless(
         loop, radius)
     euclidean.addSurroundingLoopBeginning(self.distanceFeedRate,
                                           centerOutset.outset, z)
     self.addGcodePerimeterBlockFromRemainingLoop(centerOutset.center,
                                                  loopLists, radius, z)
     #		boundary = intercircle.getLargestInsetLoopFromLoopNoMatterWhat( loop, - radius )
     #		euclidean.addSurroundingLoopBeginning( self.distanceFeedRate, boundary, z )
     #		self.addGcodePerimeterBlockFromRemainingLoop( loop, loopLists, radius, z )
     self.distanceFeedRate.addLine('(</boundaryPerimeter>)')
     self.distanceFeedRate.addLine('(</nestedRing>)')
示例#10
0
 def addGcodeFromLoop(self, loop, z):
     "Add the gcode loop."
     euclidean.addSurroundingLoopBeginning(self, loop, z)
     self.addPerimeterBlock(loop, z)
     self.addLine('(</boundaryPerimeter>)')
     self.addLine('(</surroundingLoop>)')
示例#11
0
	def addGcodeFromLoop(self, loop, z):
		'Add the gcode loop.'
		euclidean.addSurroundingLoopBeginning(self, loop, z)
		self.addPerimeterBlock(loop, z)
		self.addLine('(</boundaryPerimeter>)')
		self.addLine('(</surroundingLoop>)')
示例#12
0
文件: gcodec.py 项目: Sciumo/SFACT
	def addGcodeFromLoop(self, loop, z):
		"""Add the gcode loop."""
		euclidean.addSurroundingLoopBeginning(self, loop, z)
		self.addPerimeterBlock(loop, z)
		self.addLine('(</boundaryPerimeter>)')
		self.addLine('(</nestedRing>)')