mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Tryfix for Mac build...
This commit is contained in:
		
							parent
							
								
									16ec625483
								
							
						
					
					
						commit
						b4666e8174
					
				
					 2 changed files with 14 additions and 7 deletions
				
			
		|  | @ -12,12 +12,10 @@ | ||||||
| 
 | 
 | ||||||
| #include <clipper.hpp> | #include <clipper.hpp> | ||||||
| 
 | 
 | ||||||
| namespace libnest2d { | namespace ClipperLib { | ||||||
| 
 | using PointImpl = IntPoint; | ||||||
| // Aliases for convinience
 | using PolygonImpl = PolyNode; | ||||||
| using PointImpl = ClipperLib::IntPoint; | using PathImpl = Path; | ||||||
| using PolygonImpl = ClipperLib::PolyNode; |  | ||||||
| using PathImpl = ClipperLib::Path; |  | ||||||
| 
 | 
 | ||||||
| inline PointImpl& operator +=(PointImpl& p, const PointImpl& pa ) { | inline PointImpl& operator +=(PointImpl& p, const PointImpl& pa ) { | ||||||
|     // This could be done with SIMD
 |     // This could be done with SIMD
 | ||||||
|  | @ -50,6 +48,14 @@ inline PointImpl operator-(const PointImpl& p1, const PointImpl& p2) { | ||||||
|     ret -= p2; |     ret -= p2; | ||||||
|     return ret; |     return ret; | ||||||
| } | } | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | namespace libnest2d { | ||||||
|  | 
 | ||||||
|  | // Aliases for convinience
 | ||||||
|  | using PointImpl = ClipperLib::IntPoint; | ||||||
|  | using PolygonImpl = ClipperLib::PolyNode; | ||||||
|  | using PathImpl = ClipperLib::Path; | ||||||
| 
 | 
 | ||||||
| //extern HoleCache holeCache;
 | //extern HoleCache holeCache;
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <vector> | #include <vector> | ||||||
| #include <numeric> | #include <numeric> | ||||||
| #include <limits> | #include <limits> | ||||||
|  | #include <cmath> | ||||||
| 
 | 
 | ||||||
| #include "common.hpp" | #include "common.hpp" | ||||||
| 
 | 
 | ||||||
|  | @ -260,7 +261,7 @@ void setY(RawPoint& p, const TCoord<RawPoint>& val) | ||||||
| template<class RawPoint> | template<class RawPoint> | ||||||
| inline Radians _Segment<RawPoint>::angleToXaxis() const | inline Radians _Segment<RawPoint>::angleToXaxis() const | ||||||
| { | { | ||||||
|     if(std::isnan(angletox_)) { |     if(std::isnan(static_cast<double>(angletox_))) { | ||||||
|         TCoord<RawPoint> dx = getX(second()) - getX(first()); |         TCoord<RawPoint> dx = getX(second()) - getX(first()); | ||||||
|         TCoord<RawPoint> dy = getY(second()) - getY(first()); |         TCoord<RawPoint> dy = getY(second()) - getY(first()); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros