mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Never scale TriangleMesh objects
This commit is contained in:
		
							parent
							
								
									46e3b3180e
								
							
						
					
					
						commit
						e75dbf37fa
					
				
					 6 changed files with 33 additions and 16 deletions
				
			
		|  | @ -80,9 +80,10 @@ my $cube = { | |||
|     $m->repair; | ||||
|     my @z = (2,4,8,6,8,10,12,14,16,18,20); | ||||
|     my $result = $m->slice(\@z); | ||||
|     my $SCALING_FACTOR = 0.000001; | ||||
|     for my $i (0..$#z) { | ||||
|         is scalar(@{$result->[$i]}), 1, 'number of returned polygons per layer'; | ||||
|         is $result->[$i][0]->area, 20*20, 'size of returned polygon'; | ||||
|         is $result->[$i][0]->area, 20*20/($SCALING_FACTOR**2), 'size of returned polygon'; | ||||
|         ok $result->[$i][0]->is_counter_clockwise, 'orientation of returned polygon'; | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci