SLA base pool generation framework

This commit is contained in:
tamasmeszaros
2018-08-09 18:11:23 +02:00
parent 5164bec8ce
commit e8616b6a35
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#include "SLASupportPool.hpp"
#include "ExPolygon.hpp"
#include "TriangleMesh.hpp"
#include "boost/geometry.hpp"
namespace Slic3r { namespace sla {
void ground_layer(const Mesh3D &mesh, GroundLayer &output)
{
Mesh3D m = mesh;
TriangleMeshSlicer slicer(&m);
std::vector<GroundLayer> tmp;
slicer.slice({0.1f}, &tmp);
output = tmp.front();
}
void create_base_pool(const GroundLayer &ground_layer, Mesh3D& out)
{
// 1: Offset the ground layer
ExPolygon in;
ExPolygon chull;
boost::geometry::convex_hull(in, chull);
// 2: triangulate the ground layer
}
}
}