mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Bugfix: after recent changes, objects had slight dimension errors. #56
This commit is contained in:
		
							parent
							
								
									3d0cde2fce
								
							
						
					
					
						commit
						2ba513bdb2
					
				
					 3 changed files with 13 additions and 17 deletions
				
			
		|  | @ -10,13 +10,11 @@ use XXX; | |||
| has 'x_length' => ( | ||||
|     is          => 'ro', | ||||
|     required    => 1, | ||||
|     coerce      => sub { sprintf '%.0f', $_[0] }, | ||||
| ); | ||||
| 
 | ||||
| has 'y_length' => ( | ||||
|     is          => 'ro', | ||||
|     required    => 1, | ||||
|     coerce      => sub { sprintf '%.0f', $_[0] }, | ||||
| ); | ||||
| 
 | ||||
| has 'layers' => ( | ||||
|  | @ -181,20 +179,6 @@ sub detect_surfaces_type { | |||
|             @$expolygons; | ||||
|     }; | ||||
|      | ||||
|     # the contours must be offsetted by half extrusion width inwards | ||||
|     { | ||||
|         my $distance = scale $Slic3r::flow_width / 2; | ||||
|         foreach my $layer (@{$self->layers}) { | ||||
|             my @surfaces = @{$layer->slices}; | ||||
|             @{$layer->slices} = (); | ||||
|             foreach my $surface (@surfaces) { | ||||
|                 push @{$layer->slices}, map Slic3r::Surface->cast_from_expolygon | ||||
|                     ($_, surface_type => 'internal'), | ||||
|                     $surface->expolygon->offset_ex(-$distance); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     for (my $i = 0; $i < $self->layer_count; $i++) { | ||||
|         my $layer = $self->layers->[$i]; | ||||
|         Slic3r::debugf "Detecting solid surfaces for layer %d\n", $layer->id; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci