mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Documented the bridge detector.
This commit is contained in:
		
							parent
							
								
									feb269c97c
								
							
						
					
					
						commit
						c514e731da
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		|  | @ -9,11 +9,16 @@ | ||||||
| namespace Slic3r { | namespace Slic3r { | ||||||
| 
 | 
 | ||||||
| class BridgeDetector { | class BridgeDetector { | ||||||
|     public: | public: | ||||||
|  |     // The non-grown hole.
 | ||||||
|     ExPolygon expolygon; |     ExPolygon expolygon; | ||||||
|  |     // Lower slices, all regions.
 | ||||||
|     ExPolygonCollection lower_slices; |     ExPolygonCollection lower_slices; | ||||||
|     double extrusion_width;  // scaled
 |     // Scaled extrusion width of the infill.
 | ||||||
|  |     double extrusion_width; | ||||||
|  |     // Angle resolution for the brute force search of the best bridging angle.
 | ||||||
|     double resolution; |     double resolution; | ||||||
|  |     // The final optimal angle.
 | ||||||
|     double angle; |     double angle; | ||||||
|      |      | ||||||
|     BridgeDetector(const ExPolygon &_expolygon, const ExPolygonCollection &_lower_slices, coord_t _extrusion_width); |     BridgeDetector(const ExPolygon &_expolygon, const ExPolygonCollection &_lower_slices, coord_t _extrusion_width); | ||||||
|  | @ -23,8 +28,10 @@ class BridgeDetector { | ||||||
|     void unsupported_edges(double angle, Polylines* unsupported) const; |     void unsupported_edges(double angle, Polylines* unsupported) const; | ||||||
|     Polylines unsupported_edges(double angle = -1) const; |     Polylines unsupported_edges(double angle = -1) const; | ||||||
|      |      | ||||||
|     private: | private: | ||||||
|     Polylines _edges;   // representing the supporting edges
 |     // Open lines representing the supporting edges.
 | ||||||
|  |     Polylines _edges; | ||||||
|  |     // Closed polygons representing the supporting areas.
 | ||||||
|     ExPolygons _anchors; |     ExPolygons _anchors; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv