mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	WIP: Fix of arrangement after reducing ClipperLib::cInt
from int64_t to int32_t
This commit is contained in:
		
							parent
							
								
									c1179fc2c7
								
							
						
					
					
						commit
						29cd8aac26
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -474,8 +474,8 @@ inline _Box<P> _Box<P>::infinite(const P& center) {
 | 
			
		|||
    
 | 
			
		||||
    // It is important for Mx and My to be strictly less than half of the
 | 
			
		||||
    // range of type C. width(), height() and area() will not overflow this way.
 | 
			
		||||
    C Mx = C((std::numeric_limits<C>::lowest() + 2 * getX(center)) / 2.01);
 | 
			
		||||
    C My = C((std::numeric_limits<C>::lowest() + 2 * getY(center)) / 2.01);
 | 
			
		||||
    C Mx = C((std::numeric_limits<C>::lowest() + 2 * getX(center)) / 4.01);
 | 
			
		||||
    C My = C((std::numeric_limits<C>::lowest() + 2 * getY(center)) / 4.01);
 | 
			
		||||
    
 | 
			
		||||
    ret.maxCorner() = center - P{Mx, My};
 | 
			
		||||
    ret.minCorner() = center + P{Mx, My};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue