2013-06-24 17:35:49 +00:00
|
|
|
#include <admesh/stl.h>
|
|
|
|
|
2013-06-24 18:11:56 +00:00
|
|
|
extern "C" {
|
|
|
|
#include "EXTERN.h"
|
|
|
|
#include "perl.h"
|
|
|
|
#include "XSUB.h"
|
|
|
|
#include "ppport.h"
|
|
|
|
}
|
|
|
|
|
2013-06-24 17:35:49 +00:00
|
|
|
class TriangleMesh
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TriangleMesh();
|
|
|
|
~TriangleMesh();
|
|
|
|
void ReadSTLFile(char* input_file);
|
|
|
|
void Repair();
|
|
|
|
void WriteOBJFile(char* output_file);
|
2013-06-24 18:11:56 +00:00
|
|
|
AV* ToPerl();
|
2013-06-24 17:35:49 +00:00
|
|
|
private:
|
|
|
|
stl_file stl;
|
|
|
|
};
|
|
|
|
|
|
|
|
|