mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Added new file: ExtrusionMultiPath.xsp
Fixed a missing copy constructor of ExtrusionPath.
This commit is contained in:
		
							parent
							
								
									ff25c0ccc2
								
							
						
					
					
						commit
						3985f50c5b
					
				
					 2 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										39
									
								
								xs/xsp/ExtrusionMultiPath.xsp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								xs/xsp/ExtrusionMultiPath.xsp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,39 @@ | |||
| %module{Slic3r::XS}; | ||||
| 
 | ||||
| %{ | ||||
| #include <xsinit.h> | ||||
| #include "libslic3r/ExtrusionEntity.hpp" | ||||
| %} | ||||
| 
 | ||||
| %name{Slic3r::ExtrusionMultiPath} class ExtrusionMultiPath { | ||||
|     ExtrusionMultiPath(); | ||||
|     ~ExtrusionMultiPath(); | ||||
|     Clone<ExtrusionMultiPath> clone() | ||||
|         %code{% RETVAL = THIS; %}; | ||||
|     void reverse(); | ||||
|     Clone<Point> first_point(); | ||||
|     Clone<Point> last_point(); | ||||
|     void append(ExtrusionPath* path) | ||||
|         %code{% THIS->paths.push_back(*path); %}; | ||||
|     double length(); | ||||
|     bool is_perimeter(); | ||||
|     bool is_infill(); | ||||
|     bool is_solid_infill(); | ||||
|     Polygons polygons_covered_by_width(); | ||||
|     Polygons polygons_covered_by_spacing(); | ||||
| %{ | ||||
| 
 | ||||
| SV* | ||||
| ExtrusionMultiPath::arrayref() | ||||
|     CODE: | ||||
|         AV* av = newAV(); | ||||
|         av_fill(av, THIS->paths.size()-1); | ||||
|         for (ExtrusionPaths::iterator it = THIS->paths.begin(); it != THIS->paths.end(); ++it) { | ||||
|             av_store(av, it - THIS->paths.begin(), perl_to_SV_ref(*it)); | ||||
|         } | ||||
|         RETVAL = newRV_noinc((SV*)av); | ||||
|     OUTPUT: | ||||
|         RETVAL | ||||
| 
 | ||||
| %} | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv