mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Optimization in Polyline instantiation
This commit is contained in:
		
							parent
							
								
									27c421c27f
								
							
						
					
					
						commit
						8061cc6e30
					
				
					 14 changed files with 40 additions and 45 deletions
				
			
		|  | @ -170,8 +170,8 @@ sub validate { | |||
|                 my $clearance; | ||||
|                 { | ||||
|                     my @points = map [ @$_[X,Y] ], map @{$_->vertices}, @{$self->objects->[$obj_idx]->meshes}; | ||||
|                     my $convex_hull = Slic3r::Polygon->new(convex_hull(\@points)); | ||||
|                     ($clearance) = map Slic3r::Polygon->new($_),  | ||||
|                     my $convex_hull = Slic3r::Polygon->new(@{convex_hull(\@points)}); | ||||
|                     ($clearance) = map Slic3r::Polygon->new(@$_),  | ||||
|                                         Slic3r::Geometry::Clipper::offset( | ||||
|                                             [$convex_hull], scale $Slic3r::Config->extruder_clearance_radius / 2, 1, JT_ROUND); | ||||
|                 } | ||||
|  | @ -665,7 +665,7 @@ sub make_brim { | |||
|     } | ||||
|      | ||||
|     @{$self->brim} = map Slic3r::ExtrusionLoop->pack( | ||||
|         polygon         => Slic3r::Polygon->new($_), | ||||
|         polygon         => Slic3r::Polygon->new(@$_), | ||||
|         role            => EXTR_ROLE_SKIRT, | ||||
|         flow_spacing    => $flow->spacing, | ||||
|     ), reverse traverse_pt( union_pt(\@loops, PFT_EVENODD) ); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci