mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			No EOL
		
	
	
		
			924 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			No EOL
		
	
	
		
			924 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| %module{Slic3r::XS};
 | |
| 
 | |
| #include <xsinit.h>
 | |
| #include "slic3r/GUI/3DScene.hpp"
 | |
| 
 | |
| %name{Slic3r::GUI::_3DScene::GLVertexArray} class GLVertexArray {
 | |
|     GLVertexArray();
 | |
|     ~GLVertexArray();
 | |
|     void load_mesh(TriangleMesh* mesh) const
 | |
|         %code%{ THIS->load_mesh(*mesh); %};
 | |
|     size_t size() const
 | |
|         %code%{ RETVAL = THIS->verts.size(); %};
 | |
|     void* verts_ptr() const
 | |
|         %code%{ RETVAL = THIS->verts.empty() ? 0 : &THIS->verts.front(); %};
 | |
|     void* norms_ptr() const
 | |
|         %code%{ RETVAL = THIS->verts.empty() ? 0 : &THIS->norms.front(); %};
 | |
| };
 | |
| 
 | |
| %package{Slic3r::GUI::_3DScene};
 | |
| %{
 | |
| 
 | |
| void
 | |
| _extrusionentity_to_verts_do(Lines lines, std::vector<double> widths, std::vector<double> heights, bool closed, double top_z, Point* copy, GLVertexArray* qverts, GLVertexArray* tverts)
 | |
|     CODE:
 | |
|         _3DScene::_extrusionentity_to_verts_do(lines, widths, heights, closed,
 | |
|             top_z, *copy, qverts, tverts);
 | |
| 
 | |
| %} | 
