mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Move Print object storage to C++. (along with its subobjects)
This commit is contained in:
		
							parent
							
								
									3df2488eca
								
							
						
					
					
						commit
						8da0bded1d
					
				
					 25 changed files with 1221 additions and 273 deletions
				
			
		|  | @ -71,17 +71,14 @@ sub generate { | |||
|      | ||||
|     # Install support layers into object. | ||||
|     for my $i (0 .. $#$support_z) { | ||||
|         push @{$object->support_layers}, Slic3r::Layer::Support->new( | ||||
|             object  => $object, | ||||
|             id      => $i, | ||||
|             height  => ($i == 0) ? $support_z->[$i] : ($support_z->[$i] - $support_z->[$i-1]), | ||||
|             print_z => $support_z->[$i], | ||||
|             slice_z => -1, | ||||
|             slices  => [], | ||||
|         ); | ||||
|         $object->add_support_layer( | ||||
|             $i, # id | ||||
|             ($i == 0) ? $support_z->[$i] : ($support_z->[$i] - $support_z->[$i-1]), # height | ||||
|             $support_z->[$i], # print_z | ||||
|             -1); # slice_z | ||||
|         if ($i >= 1) { | ||||
|             $object->support_layers->[-2]->upper_layer($object->support_layers->[-1]); | ||||
|             $object->support_layers->[-1]->lower_layer($object->support_layers->[-2]); | ||||
|             $object->support_layers->[-2]->set_upper_layer($object->support_layers->[-1]); | ||||
|             $object->support_layers->[-1]->set_lower_layer($object->support_layers->[-2]); | ||||
|         } | ||||
|     } | ||||
|      | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Y. Sapir
						Y. Sapir