mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 19:39:05 +08:00
Move everything into the Slic3r namespace. #1301
This commit is contained in:
parent
6f6ee40dae
commit
98726fdef4
@ -10,6 +10,8 @@ extern "C" {
|
||||
|
||||
#include "Point.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
typedef std::vector<Point> Polygon;
|
||||
typedef std::vector<Polygon> Polygons;
|
||||
|
||||
@ -48,4 +50,6 @@ polygon2perl(Polygon& poly) {
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -8,6 +8,8 @@ extern "C" {
|
||||
#include "ppport.h"
|
||||
}
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class Point
|
||||
{
|
||||
public:
|
||||
@ -24,4 +26,6 @@ point2perl(Point& point) {
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include "TriangleMesh.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
TriangleMesh::TriangleMesh() {}
|
||||
TriangleMesh::~TriangleMesh() {
|
||||
stl_close(&stl);
|
||||
@ -130,3 +132,5 @@ TriangleMesh::ToPerl() {
|
||||
av_store(result, 1, newRV_noinc((SV*)facets));
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ extern "C" {
|
||||
#include "ppport.h"
|
||||
}
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class TriangleMesh
|
||||
{
|
||||
public:
|
||||
@ -24,4 +26,6 @@ class TriangleMesh
|
||||
stl_file stl;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -8,6 +8,8 @@ extern "C" {
|
||||
#include "ppport.h"
|
||||
}
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class ZTable
|
||||
{
|
||||
public:
|
||||
@ -21,4 +23,6 @@ ZTable::ZTable(std::vector<unsigned int>* ztable) :
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -3,6 +3,9 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace Slic3r {}
|
||||
using namespace Slic3r;
|
||||
|
||||
#define av_store_point_xy(AV, X, Y) \
|
||||
av_store(AV, 0, newSViv(X)); \
|
||||
av_store(AV, 1, newSViv(Y))
|
||||
|
Loading…
x
Reference in New Issue
Block a user