25 lines
465 B
C++
25 lines
465 B
C++
#ifndef slic3r_TriangleMesh_hpp_
|
|
#define slic3r_TriangleMesh_hpp_
|
|
|
|
#include <myinit.h>
|
|
#include <admesh/stl.h>
|
|
|
|
namespace Slic3r {
|
|
|
|
class TriangleMesh
|
|
{
|
|
public:
|
|
TriangleMesh();
|
|
~TriangleMesh();
|
|
void ReadSTLFile(char* input_file);
|
|
void ReadFromPerl(SV* vertices, SV* facets);
|
|
void Repair();
|
|
void WriteOBJFile(char* output_file);
|
|
void scale(float factor);
|
|
void translate(float x, float y, float z);
|
|
stl_file stl;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|