SlicesToTriangleMesh.hpp 770 B

123456789101112131415161718192021222324
  1. #ifndef SLICESTOTRIANGLEMESH_HPP
  2. #define SLICESTOTRIANGLEMESH_HPP
  3. #include "libslic3r/TriangleMesh.hpp"
  4. #include "libslic3r/ExPolygon.hpp"
  5. namespace Slic3r {
  6. void slices_to_triangle_mesh(TriangleMesh & mesh,
  7. const std::vector<ExPolygons> &slices,
  8. double zmin,
  9. double lh,
  10. double ilh);
  11. inline TriangleMesh slices_to_triangle_mesh(
  12. const std::vector<ExPolygons> &slices, double zmin, double lh, double ilh)
  13. {
  14. TriangleMesh out; slices_to_triangle_mesh(out, slices, zmin, lh, ilh);
  15. return out;
  16. }
  17. } // namespace Slic3r
  18. #endif // SLICESTOTRIANGLEMESH_HPP