mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Reworked pad creation algorithm with new parameters:
* brim size * force pad around object everywhere
This commit is contained in:
		
							parent
							
								
									9d775d0a43
								
							
						
					
					
						commit
						e675a5d5c6
					
				
					 27 changed files with 1410 additions and 1448 deletions
				
			
		| 
						 | 
				
			
			@ -16,9 +16,9 @@ const std::string USAGE_STR = {
 | 
			
		|||
 | 
			
		||||
namespace Slic3r { namespace sla {
 | 
			
		||||
 | 
			
		||||
Contour3D create_base_pool(const Polygons &ground_layer,
 | 
			
		||||
Contour3D create_pad(const Polygons &ground_layer,
 | 
			
		||||
                           const ExPolygons &holes = {},
 | 
			
		||||
                           const PoolConfig& cfg = PoolConfig());
 | 
			
		||||
                           const PadConfig& cfg = PadConfig());
 | 
			
		||||
 | 
			
		||||
Contour3D walls(const Polygon& floor_plate, const Polygon& ceiling,
 | 
			
		||||
                double floor_z_mm, double ceiling_z_mm,
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ int main(const int argc, const char *argv[]) {
 | 
			
		|||
    model.align_to_origin();
 | 
			
		||||
 | 
			
		||||
    ExPolygons ground_slice;
 | 
			
		||||
    sla::base_plate(model, ground_slice, 0.1f);
 | 
			
		||||
    sla::pad_plate(model, ground_slice, 0.1f);
 | 
			
		||||
    if(ground_slice.empty()) return EXIT_FAILURE;
 | 
			
		||||
 | 
			
		||||
    ground_slice = offset_ex(ground_slice, 0.5);
 | 
			
		||||
| 
						 | 
				
			
			@ -56,10 +56,10 @@ int main(const int argc, const char *argv[]) {
 | 
			
		|||
 | 
			
		||||
    bench.start();
 | 
			
		||||
 | 
			
		||||
    sla::PoolConfig cfg;
 | 
			
		||||
    sla::PadConfig cfg;
 | 
			
		||||
    cfg.min_wall_height_mm = 0;
 | 
			
		||||
    cfg.edge_radius_mm = 0;
 | 
			
		||||
    mesh = sla::create_base_pool(to_polygons(ground_slice), {}, cfg);
 | 
			
		||||
    mesh = sla::create_pad(to_polygons(ground_slice), {}, cfg);
 | 
			
		||||
 | 
			
		||||
    bench.stop();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue