mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fix destructors
This commit is contained in:
		
							parent
							
								
									b66a796f0b
								
							
						
					
					
						commit
						f4db7625bc
					
				
					 3 changed files with 9 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
%}
 | 
			
		||||
 | 
			
		||||
%name{Slic3r::ExPolygon::XS} class ExPolygon {
 | 
			
		||||
    ~ExPolygon();
 | 
			
		||||
%{
 | 
			
		||||
 | 
			
		||||
ExPolygon*
 | 
			
		||||
| 
						 | 
				
			
			@ -13,9 +14,10 @@ ExPolygon::new(...)
 | 
			
		|||
    CODE:
 | 
			
		||||
        RETVAL = new ExPolygon ();
 | 
			
		||||
        // ST(0) is class name, ST(1) is contour and others are holes
 | 
			
		||||
        RETVAL->contour = *perl2polygon(ST(1));
 | 
			
		||||
        perl2polygon(ST(1), RETVAL->contour);
 | 
			
		||||
        RETVAL->holes.resize(items-2);
 | 
			
		||||
        for (unsigned int i = 2; i < items; i++) {
 | 
			
		||||
            RETVAL->holes.push_back(*perl2polygon(ST(i)));
 | 
			
		||||
            perl2polygon(ST(i), RETVAL->holes[i-2]);
 | 
			
		||||
        }
 | 
			
		||||
    OUTPUT:
 | 
			
		||||
        RETVAL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue