mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Fix some builds that fail with cgal 5.2.3
This commit is contained in:
		
							parent
							
								
									25a3ab255b
								
							
						
					
					
						commit
						f494ad565b
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -159,8 +159,9 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh) | |||
|         int i = 0; | ||||
|         Vec3i facet; | ||||
|         for (auto v : vtc) { | ||||
|             if (i > 2 || v < 0 || v >= cgalmesh.vertices().size()) { i = 0; break; } | ||||
|             facet(i++) = v; | ||||
|             int iv = v; | ||||
|             if (i > 2 || iv < 0 || iv >= int(cgalmesh.vertices().size())) { i = 0; break; } | ||||
|             facet(i++) = iv; | ||||
|         } | ||||
| 
 | ||||
|         if (i == 3) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros