mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Replacing ClipperLib::IntPoint with Eigen point as a first step to
make the ClipperLib paths and polygons compatible with Slic3r paths and polygons without conversions and memory allocations.
This commit is contained in:
		
							parent
							
								
									29cd8aac26
								
							
						
					
					
						commit
						7112ac61b6
					
				
					 14 changed files with 416 additions and 401 deletions
				
			
		| 
						 | 
				
			
			@ -77,8 +77,8 @@ protected:
 | 
			
		|||
    double getPx(const Point &p) { return p(0) * m_pxdim_scaled.w_mm; }
 | 
			
		||||
    double getPy(const Point &p) { return p(1) * m_pxdim_scaled.h_mm; }
 | 
			
		||||
    agg::path_storage to_path(const Polygon &poly) { return to_path(poly.points); }
 | 
			
		||||
    double getPx(const ClipperLib::IntPoint &p) { return p.X * m_pxdim_scaled.w_mm; }
 | 
			
		||||
    double getPy(const ClipperLib::IntPoint& p) { return p.Y * m_pxdim_scaled.h_mm; }
 | 
			
		||||
    double getPx(const ClipperLib::IntPoint &p) { return p.x() * m_pxdim_scaled.w_mm; }
 | 
			
		||||
    double getPy(const ClipperLib::IntPoint& p) { return p.y() * m_pxdim_scaled.h_mm; }
 | 
			
		||||
    
 | 
			
		||||
    template<class PointVec> agg::path_storage _to_path(const PointVec& v)
 | 
			
		||||
    {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue