Finalize new sla backend interface
no has_mesh or get_mesh based on states, but specific methods to get the mesh type needed (support, pad, object) Commented out everything that does not conform in frontend
This commit is contained in:
parent
39a1ed0e1a
commit
15fa4c42d6
10 changed files with 366 additions and 294 deletions
|
@ -1056,6 +1056,23 @@ const TriangleMesh& SLAPrintObject::pad_mesh() const
|
|||
return EMPTY_MESH;
|
||||
}
|
||||
|
||||
const TriangleMesh &SLAPrintObject::get_mesh_to_print() const {
|
||||
const TriangleMesh *ret = nullptr;
|
||||
|
||||
int s = SLAPrintObjectStep::slaposCount;
|
||||
|
||||
while (s > 0 && !ret) {
|
||||
--s;
|
||||
if (is_step_done(SLAPrintObjectStep(s)) && !m_preview_meshes[s].empty())
|
||||
ret = &m_preview_meshes[s];
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
ret = &m_transformed_rmesh;
|
||||
|
||||
return *ret;
|
||||
}
|
||||
|
||||
//const indexed_triangle_set &SLAPrintObject::hollowed_interior_mesh() const
|
||||
//{
|
||||
// if (m_hollowing_data && m_hollowing_data->interior &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue