2020-04-13 10:31:37 +00:00
|
|
|
#ifndef SLICESTOTRIANGLEMESH_HPP
|
|
|
|
#define SLICESTOTRIANGLEMESH_HPP
|
|
|
|
|
|
|
|
#include "libslic3r/TriangleMesh.hpp"
|
|
|
|
#include "libslic3r/ExPolygon.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2021-05-26 15:38:57 +00:00
|
|
|
void slices_to_mesh(indexed_triangle_set & mesh,
|
2021-11-05 14:32:14 +00:00
|
|
|
const std::vector<ExPolygons> &slices,
|
|
|
|
double zmin,
|
|
|
|
double lh,
|
|
|
|
double ilh);
|
2020-04-13 10:31:37 +00:00
|
|
|
|
2021-05-26 15:38:57 +00:00
|
|
|
inline indexed_triangle_set slices_to_mesh(
|
2020-04-13 10:31:37 +00:00
|
|
|
const std::vector<ExPolygons> &slices, double zmin, double lh, double ilh)
|
|
|
|
{
|
2021-05-26 15:38:57 +00:00
|
|
|
indexed_triangle_set out;
|
|
|
|
slices_to_mesh(out, slices, zmin, lh, ilh);
|
|
|
|
|
2020-04-13 10:31:37 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif // SLICESTOTRIANGLEMESH_HPP
|