mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
slaprint with dummy backround processing in plater.
This commit is contained in:
parent
91a79e0343
commit
3b373a55e6
6 changed files with 143 additions and 65 deletions
|
@ -137,6 +137,7 @@ GLGizmoBase::GLGizmoBase(GLCanvas3D& parent)
|
|||
: m_parent(parent)
|
||||
, m_group_id(-1)
|
||||
, m_state(Off)
|
||||
, m_prev_state(Off)
|
||||
, m_hover_id(-1)
|
||||
, m_dragging(false)
|
||||
{
|
||||
|
@ -1621,32 +1622,6 @@ void GLGizmoSlaSupports::update_mesh()
|
|||
}
|
||||
}
|
||||
|
||||
void GLGizmoSlaSupports::on_deactivate() {
|
||||
if(!m_model_object) return;
|
||||
|
||||
// sla::Controller supportctl;
|
||||
// std::cout << "Generating supports:" << std::endl;
|
||||
|
||||
// // TODO: somehow get the global status indicator
|
||||
// supportctl.statuscb = [] (unsigned st, const std::string& msg) {
|
||||
// std::cout << st << "% " << msg << std::endl;
|
||||
// };
|
||||
|
||||
// TriangleMesh&& m = m_model_object->raw_mesh();
|
||||
// m.transform(m_model_object_matrix);
|
||||
// auto emesh = sla::to_eigenmesh(m);
|
||||
|
||||
// sla::SupportConfig cfg;
|
||||
// sla::PointSet input = sla::support_points(*m_model_object, 0 /*instance*/);
|
||||
|
||||
// sla::SLASupportTree stree(input, emesh, cfg, supportctl);
|
||||
|
||||
// TriangleMesh output;
|
||||
// stree.merged_mesh(output);
|
||||
|
||||
// _3DScene::reload_scene(m_parent.get_wxglcanvas(), false);
|
||||
}
|
||||
|
||||
Vec3f GLGizmoSlaSupports::unproject_on_mesh(const Vec2d& mouse_pos)
|
||||
{
|
||||
// if the gizmo doesn't have the V, F structures for igl, calculate them first:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue