kopia lustrzana https://github.com/vilemduha/blendercam
				
				
				
			some preparations for cirlce strategy sorting
							rodzic
							
								
									ad1fd78907
								
							
						
					
					
						commit
						0d1a25c6e0
					
				|  | @ -316,8 +316,11 @@ def getPathPattern(operation): | ||||||
| 			v=Vector((-r,0,0)) | 			v=Vector((-r,0,0)) | ||||||
| 			steps=2*pi*r/pathstep | 			steps=2*pi*r/pathstep | ||||||
| 			e.z=2*pi/steps | 			e.z=2*pi/steps | ||||||
|  | 			laststepchunks=[] | ||||||
|  | 			currentstepchunks=[] | ||||||
| 			for a in range(0,int(steps)): | 			for a in range(0,int(steps)): | ||||||
| 				 | 				laststepchunks = currentstepchunks | ||||||
|  | 				currentstepchunks = [] | ||||||
| 				 | 				 | ||||||
| 				if o.max.x>midx+v.x>o.min.x and o.max.y>midy+v.y>o.min.y: | 				if o.max.x>midx+v.x>o.min.x and o.max.y>midy+v.y>o.min.y: | ||||||
| 					chunk.points.append((midx+v.x,midy+v.y,zlevel)) | 					chunk.points.append((midx+v.x,midy+v.y,zlevel)) | ||||||
|  | @ -325,17 +328,22 @@ def getPathPattern(operation): | ||||||
| 					if len(chunk.points)>0: | 					if len(chunk.points)>0: | ||||||
| 						chunk.closed=False | 						chunk.closed=False | ||||||
| 						pathchunks.append(chunk) | 						pathchunks.append(chunk) | ||||||
| 						 | 						currentstepchunks.append(chunk) | ||||||
| 						chunk=camPathChunk([]) | 						chunk=camPathChunk([]) | ||||||
| 				v.rotate(e) | 				v.rotate(e) | ||||||
| 			 | 				 | ||||||
| 			 | 			 | ||||||
| 			if len(chunk.points)>0: | 			if len(chunk.points)>0: | ||||||
| 				chunk.points.append(firstchunk.points[0]) | 				chunk.points.append(firstchunk.points[0]) | ||||||
| 				if chunk==firstchunk: | 				if chunk==firstchunk: | ||||||
| 					chunk.closed=True | 					chunk.closed=True | ||||||
| 				pathchunks.append(chunk) | 				pathchunks.append(chunk) | ||||||
|  | 				currentstepchunks.append(chunk) | ||||||
| 				chunk=camPathChunk([]) | 				chunk=camPathChunk([]) | ||||||
|  | 			for ch in laststepchunks: | ||||||
|  | 				for p in currentstepchunks: | ||||||
|  | 					parentChildDist(p,ch,o) | ||||||
|  | 			 | ||||||
| 		if o.movement_insideout=='OUTSIDEIN': | 		if o.movement_insideout=='OUTSIDEIN': | ||||||
| 			pathchunks.reverse() | 			pathchunks.reverse() | ||||||
| 		for chunk in pathchunks: | 		for chunk in pathchunks: | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 vilemnovak
						vilemnovak