kopia lustrzana https://github.com/inkstitch/inkstitch
				
				
				
			geoms: an other one
							rodzic
							
								
									87f328ec85
								
							
						
					
					
						commit
						1b0d46af36
					
				|  | @ -62,7 +62,7 @@ def _get_pattern_points(first, second, pattern): | ||||||
|     if isinstance(intersection, shgeo.Point): |     if isinstance(intersection, shgeo.Point): | ||||||
|         points.append(Point(intersection.x, intersection.y)) |         points.append(Point(intersection.x, intersection.y)) | ||||||
|     if isinstance(intersection, shgeo.MultiPoint): |     if isinstance(intersection, shgeo.MultiPoint): | ||||||
|         for point in intersection: |         for point in intersection.geoms: | ||||||
|             points.append(Point(point.x, point.y)) |             points.append(Point(point.x, point.y)) | ||||||
|     # sort points after their distance to first |     # sort points after their distance to first | ||||||
|     points.sort(key=lambda point: point.distance(first)) |     points.sort(key=lambda point: point.distance(first)) | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Kaalleen
						Kaalleen