Beispiel #1
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>)' )
Beispiel #2
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>)' )
Beispiel #3
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>)')
Beispiel #4
0
	def addGcodeFromRemainingLoop( self, loop, loopLists, radius, z ):
		"Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
		euclidean.addSurroundingLoopBeginning( loop, self, z )
		isIntersectingSelf = isIntersectingItself( loop, self.extrusionWidth )
		if isIntersectingWithinLists( loop, loopLists ) or isIntersectingSelf:
			self.addGcodeFromPerimeterPaths( isIntersectingSelf, loop, loopLists, radius, z )
		else:
			self.addLine( '(<perimeter>)' ) # Indicate that a perimeter is beginning.
			self.addGcodeFromThreadZ( loop + [ loop[ 0 ] ], z )
			self.addLine( '(</perimeter>)' ) # Indicate that a perimeter is beginning.
		self.addLine( '(</surroundingLoop>)' )
Beispiel #5
0
 def addGcodeFromRemainingLoop(self, loop, loopLists, radius, z):
     "Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
     euclidean.addSurroundingLoopBeginning(loop, self, z)
     isIntersectingSelf = isIntersectingItself(loop, self.extrusionWidth)
     if isIntersectingWithinLists(loop, loopLists) or isIntersectingSelf:
         self.addGcodeFromPerimeterPaths(isIntersectingSelf, loop,
                                         loopLists, radius, z)
     else:
         self.addLine(
             '(<perimeter>)')  # Indicate that a perimeter is beginning.
         self.addGcodeFromThreadZ(loop + [loop[0]], z)
         self.addLine(
             '(</perimeter>)')  # Indicate that a perimeter is beginning.
     self.addLine('(</surroundingLoop>)')
Beispiel #6
0
	def addGcodeFromLoop( self, loop, z ):
		"Add the remainder of the loop which does not overlap the alreadyFilledArounds loops."
		euclidean.addSurroundingLoopBeginning( loop, self, z )
		self.distanceFeedRate.addPerimeterBlock( loop, z )
		self.distanceFeedRate.addLine( '(</surroundingLoop>)' )
Beispiel #7
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>)' )
Beispiel #8
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>)' )