mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Ported encloses_point() to XS and renamed to contains_point()
This commit is contained in:
		
							parent
							
								
									a225a8b2ef
								
							
						
					
					
						commit
						5f81292f3f
					
				
					 22 changed files with 81 additions and 76 deletions
				
			
		|  | @ -527,7 +527,7 @@ EOF | |||
|             my $layer = $self->objects->[$obj_idx]->layers->[$layer_id] or next; | ||||
|              | ||||
|             # sort slices so that the outermost ones come first | ||||
|             my @slices = sort { $a->contour->encloses_point($b->contour->[0]) ? 0 : 1 } @{$layer->slices}; | ||||
|             my @slices = sort { $a->contour->contains_point($b->contour->first_point) ? 0 : 1 } @{$layer->slices}; | ||||
|             foreach my $copy (@{$self->objects->[$obj_idx]->copies}) { | ||||
|                 foreach my $slice (@slices) { | ||||
|                     my $expolygon = $slice->clone; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci