mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Revert "Fix: Orientation() has been declared inline, therefore not exported."
This reverts commit c2ee73d211.
			
			
This commit is contained in:
		
							parent
							
								
									c2ee73d211
								
							
						
					
					
						commit
						cd7134e6f6
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -285,6 +285,12 @@ inline Int128 Int128Mul (long64 lhs, long64 rhs) | |||
| // Miscellaneous global functions
 | ||||
| //------------------------------------------------------------------------------
 | ||||
| 
 | ||||
| inline bool Orientation(const Path &poly) | ||||
| { | ||||
|     return Area(poly) >= 0; | ||||
| } | ||||
| //------------------------------------------------------------------------------
 | ||||
| 
 | ||||
| double Area(const Path &poly) | ||||
| { | ||||
|   int size = (int)poly.size(); | ||||
|  |  | |||
|  | @ -186,8 +186,8 @@ private: | |||
|     friend class Clipper; //to access AllNodes
 | ||||
| }; | ||||
| 
 | ||||
| bool Orientation(const Path &poly); | ||||
| double Area(const Path &poly); | ||||
| inline bool Orientation(const Path &poly) { return Area(poly) >= 0; } | ||||
| int PointInPolygon(const IntPoint &pt, const Path &path); | ||||
| 
 | ||||
| void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType = pftEvenOdd); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv