SLA automatic support points: Added cancellation points.

This commit is contained in:
bubnikv 2018-12-22 11:21:21 +01:00
parent 18beb10ae0
commit 0a3758d785
3 changed files with 21 additions and 4 deletions

View file

@ -17,7 +17,8 @@ public:
float minimal_z;
};
SLAAutoSupports(const TriangleMesh& mesh, const sla::EigenMesh3D& emesh, const std::vector<ExPolygons>& slices, const std::vector<float>& heights, const Config& config);
SLAAutoSupports(const TriangleMesh& mesh, const sla::EigenMesh3D& emesh, const std::vector<ExPolygons>& slices,
const std::vector<float>& heights, const Config& config, std::function<void(void)> throw_on_cancel);
const std::vector<Vec3d>& output() { return m_output; }
private:
@ -38,6 +39,7 @@ private:
#endif /* SLA_AUTOSUPPORTS_DEBUG */
SLAAutoSupports::Config m_config;
std::function<void(void)> m_throw_on_cancel;
const Eigen::MatrixXd& m_V;
const Eigen::MatrixXi& m_F;
};