mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 16:51:21 -06:00
SLA backround processing pipeline invisible but runs.
This commit is contained in:
parent
e05063c8b1
commit
33eade5300
4 changed files with 26 additions and 13 deletions
|
|
@ -924,6 +924,11 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
//...
|
||||
};
|
||||
|
||||
// Debug:
|
||||
for(int pn = 0; pn < points.rows(); ++pn) {
|
||||
std::cout << "p " << pn << " " << points.row(pn) << std::endl;
|
||||
}
|
||||
|
||||
auto filterfn = [] (
|
||||
const SupportConfig& cfg,
|
||||
const PointSet& points,
|
||||
|
|
@ -1511,7 +1516,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
|
||||
auto progress = [&ctl, &pc, &pc_prev] () {
|
||||
static const std::array<std::string, NUM_STEPS> stepstr {
|
||||
"",
|
||||
"Starting",
|
||||
"Filtering",
|
||||
"Generate pinheads",
|
||||
"Classification",
|
||||
|
|
|
|||
|
|
@ -74,13 +74,16 @@ struct Controller {
|
|||
/// An index-triangle structure for libIGL functions. Also serves as an
|
||||
/// alternative (raw) input format for the SLASupportTree
|
||||
struct EigenMesh3D {
|
||||
// Eigen::MatrixXd V;
|
||||
// Eigen::MatrixXi F;
|
||||
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> V;
|
||||
Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> F;
|
||||
Eigen::MatrixXd V;
|
||||
Eigen::MatrixXi F;
|
||||
|
||||
// igl crashes with the following data types:
|
||||
// Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> V;
|
||||
// Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> F;
|
||||
};
|
||||
|
||||
using PointSet = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign>; //Eigen::MatrixXd;
|
||||
//using PointSet = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign>; //Eigen::MatrixXd;
|
||||
using PointSet = Eigen::MatrixXd;
|
||||
|
||||
/* ************************************************************************** */
|
||||
/* TODO: May not be needed: */
|
||||
|
|
|
|||
|
|
@ -84,11 +84,11 @@ size_t SpatIndex::size() const
|
|||
}
|
||||
|
||||
PointSet normals(const PointSet& points, const EigenMesh3D& mesh) {
|
||||
// Eigen::VectorXd dists;
|
||||
// Eigen::VectorXi I;
|
||||
#ifdef IGL_COMPATIBLE
|
||||
Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::DontAlign> dists;
|
||||
Eigen::Matrix<int, Eigen::Dynamic, 1, Eigen::DontAlign> I;
|
||||
Eigen::VectorXd dists;
|
||||
Eigen::VectorXi I;
|
||||
// Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::DontAlign> dists;
|
||||
// Eigen::Matrix<int, Eigen::Dynamic, 1, Eigen::DontAlign> I;
|
||||
PointSet C;
|
||||
|
||||
igl::point_mesh_squared_distance( points, mesh.V, mesh.F, dists, I, C);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue