mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	
							parent
							
								
									84c9136e2d
								
							
						
					
					
						commit
						29f2394ecb
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -278,6 +278,8 @@ template<class RawShape> class EdgeCache { | |||
| 
 | ||||
|     inline Vertex coords(const ContourCache& cache, double distance) const { | ||||
|         assert(distance >= .0 && distance <= 1.0); | ||||
|         if (cache.distances.empty() || cache.emap.empty()) return Vertex{}; | ||||
|         if (distance > 1.0) distance = std::fmod(distance, 1.0); | ||||
| 
 | ||||
|         // distance is from 0.0 to 1.0, we scale it up to the full length of
 | ||||
|         // the circumference
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros