2015-01-17 23:36:21 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
#include <myinit.h>
|
2015-12-06 11:54:01 +00:00
|
|
|
#include "slic3r/GUI/3DScene.hpp"
|
2015-01-17 23:36:21 +00:00
|
|
|
|
2015-01-24 22:35:29 +00:00
|
|
|
%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(); %};
|
|
|
|
};
|
|
|
|
|
2015-01-17 23:36:21 +00:00
|
|
|
%package{Slic3r::GUI::_3DScene};
|
|
|
|
%{
|
|
|
|
|
|
|
|
void
|
2015-01-24 22:35:29 +00:00
|
|
|
_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)
|
2015-01-17 23:36:21 +00:00
|
|
|
CODE:
|
|
|
|
_3DScene::_extrusionentity_to_verts_do(lines, widths, heights, closed,
|
2015-01-24 22:35:29 +00:00
|
|
|
top_z, *copy, qverts, tverts);
|
2015-01-17 23:36:21 +00:00
|
|
|
|
|
|
|
%}
|