WIP: prepare frontend to use new sla backend interface
This commit is contained in:
parent
ab9f231c0c
commit
39a1ed0e1a
3 changed files with 97 additions and 95 deletions
|
@ -119,8 +119,8 @@ public:
|
|||
};
|
||||
const std::vector<Instance>& instances() const { return m_instances; }
|
||||
|
||||
bool has_mesh(SLAPrintObjectStep step) const;
|
||||
TriangleMesh get_mesh(SLAPrintObjectStep step) const;
|
||||
// bool has_mesh(SLAPrintObjectStep step) const;
|
||||
// TriangleMesh get_mesh(SLAPrintObjectStep step) const;
|
||||
|
||||
// Get a support mesh centered around origin in XY, and with zero rotation around Z applied.
|
||||
// Support mesh is only valid if this->is_step_done(slaposSupportTree) is true.
|
||||
|
@ -129,17 +129,17 @@ public:
|
|||
// Support mesh is only valid if this->is_step_done(slaposPad) is true.
|
||||
const TriangleMesh& pad_mesh() const;
|
||||
|
||||
// Ready after this->is_step_done(slaposDrillHoles) is true
|
||||
const indexed_triangle_set &hollowed_interior_mesh() const;
|
||||
// // Ready after this->is_step_done(slaposDrillHoles) is true
|
||||
// const indexed_triangle_set &hollowed_interior_mesh() const;
|
||||
|
||||
// Get the mesh that is going to be printed with all the modifications
|
||||
// like hollowing and drilled holes.
|
||||
const TriangleMesh & get_mesh_to_print() const {
|
||||
return !m_mesh_from_slices.empty() ? m_mesh_from_slices : transformed_mesh();
|
||||
return !m_mesh_from_slices.empty() ? m_mesh_from_slices : m_transformed_rmesh;
|
||||
}
|
||||
|
||||
// This will return the transformed mesh which is cached
|
||||
const TriangleMesh& transformed_mesh() const;
|
||||
// // This will return the transformed mesh which is cached
|
||||
// const TriangleMesh& transformed_mesh() const;
|
||||
|
||||
sla::SupportPoints transformed_support_points() const;
|
||||
sla::DrainHoles transformed_drainhole_points() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue