mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Incomplete work for porting simplify() to XS
This commit is contained in:
		
							parent
							
								
									7475762a27
								
							
						
					
					
						commit
						518798beb3
					
				
					 24 changed files with 121 additions and 41 deletions
				
			
		| 
						 | 
				
			
			@ -32,13 +32,6 @@ sub grow {
 | 
			
		|||
    return $self->split_at_first_point->grow(@_);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# NOTE that this will turn the polygon to ccw regardless of its 
 | 
			
		||||
# original orientation
 | 
			
		||||
sub simplify {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return @{Slic3r::Geometry::Clipper::simplify_polygons([ $self->SUPER::simplify(@_) ])};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# this method subdivides the polygon segments to that no one of them
 | 
			
		||||
# is longer than the length provided
 | 
			
		||||
sub subdivide {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue