mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Fixed case in MMU segmentation when the infinity-edge in the Voronoi diagram has vertex0(), and vertex1() equals nullptr.
This commit is contained in:
		
							parent
							
								
									1b144e80bd
								
							
						
					
					
						commit
						db55bd706e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -795,7 +795,7 @@ static MMU_Graph build_graph(size_t layer_idx, const std::vector<std::vector<Col | |||
|         if (edge_it->cell()->source_index() > edge_it->twin()->cell()->source_index() || edge_it->color()) | ||||
|             continue; | ||||
| 
 | ||||
|         if (edge_it->is_infinite()) { | ||||
|         if (edge_it->is_infinite() && (edge_it->vertex0() != nullptr || edge_it->vertex1() != nullptr)) { | ||||
|             // Infinite edge is leading through a point on the counter, but there are no Voronoi vertices.
 | ||||
|             // So we could fix this case by computing the intersection between the contour line and infinity edge.
 | ||||
|             std::vector<Voronoi::Internal::point_type> samples; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukáš Hejl
						Lukáš Hejl