mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into lh_avoid_crossing_perimeters
# Conflicts: # src/libslic3r/MotionPlanner.cpp # src/libslic3r/libslic3r.h
This commit is contained in:
		
						commit
						87879034f6
					
				
					 175 changed files with 34821 additions and 26174 deletions
				
			
		|  | @ -350,23 +350,10 @@ void ExPolygon::get_trapezoids2(Polygons* polygons) const | |||
|     // find trapezoids by looping from first to next-to-last coordinate
 | ||||
|     for (std::vector<coord_t>::const_iterator x = xx.begin(); x != xx.end()-1; ++x) { | ||||
|         coord_t next_x = *(x + 1); | ||||
|         if (*x == next_x) continue; | ||||
|          | ||||
|         // build rectangle
 | ||||
|         Polygon poly; | ||||
|         poly.points.resize(4); | ||||
|         poly[0](0) = *x; | ||||
|         poly[0](1) = bb.min(1); | ||||
|         poly[1](0) = next_x; | ||||
|         poly[1](1) = bb.min(1); | ||||
|         poly[2](0) = next_x; | ||||
|         poly[2](1) = bb.max(1); | ||||
|         poly[3](0) = *x; | ||||
|         poly[3](1) = bb.max(1); | ||||
|          | ||||
|         // intersect with this expolygon
 | ||||
|         // append results to return value
 | ||||
|         polygons_append(*polygons, intersection(poly, to_polygons(*this))); | ||||
|         if (*x != next_x) | ||||
|             // intersect with rectangle
 | ||||
|             // append results to return value
 | ||||
|             polygons_append(*polygons, intersection({ { { *x, bb.min.y() }, { next_x, bb.min.y() }, { next_x, bb.max.y() }, { *x, bb.max.y() } } }, to_polygons(*this))); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukáš Hejl
						Lukáš Hejl