mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-28 19:21:20 -06:00 
			
		
		
		
	 e90279c513
			
		
	
	
		e90279c513
		
	
	
	
	
		
			
			Removed GCode.pm Removed the Perl bindigns for AvoidCrossingPerimeters, OozePrevention, SpiralVase, Wipe Changed the std::set of extruder IDs to vector of IDs. Removed some MSVC compiler warnings, removed obnoxious compiler warnings when compiling the Perl bindings.
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1,006 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1,006 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| %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();
 | |
|     Polygons polygons_covered_by_width();
 | |
|     Polygons polygons_covered_by_spacing();
 | |
|     Clone<Polyline> polyline()
 | |
|         %code{% RETVAL = THIS->as_polyline(); %};
 | |
| %{
 | |
| 
 | |
| 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
 | |
| 
 | |
| %}
 | |
| };
 |