mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Fix for arrange crash when geometry has zero length segments
fixes #5749
This commit is contained in:
		
							parent
							
								
									1e69e6def1
								
							
						
					
					
						commit
						64ec319017
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -220,7 +220,9 @@ inline NfpResult<RawShape> nfpConvexOnly(const RawShape& sh, | |||
|         auto next = std::next(first); | ||||
| 
 | ||||
|         while(next != sl::cend(sh)) { | ||||
|             edgelist.emplace_back(*(first), *(next)); | ||||
|             if (pl::magnsq(*next - *first) > 0) | ||||
|                 edgelist.emplace_back(*(first), *(next)); | ||||
| 
 | ||||
|             ++first; ++next; | ||||
|         } | ||||
|     } | ||||
|  | @ -230,7 +232,9 @@ inline NfpResult<RawShape> nfpConvexOnly(const RawShape& sh, | |||
|         auto next = std::next(first); | ||||
| 
 | ||||
|         while(next != sl::cend(other)) { | ||||
|             edgelist.emplace_back(*(next), *(first)); | ||||
|             if (pl::magnsq(*next - *first) > 0) | ||||
|                 edgelist.emplace_back(*(next), *(first)); | ||||
| 
 | ||||
|             ++first; ++next; | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros