mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 20:35:56 +08:00
Remove leftover comments in SLAPrint
This commit is contained in:
parent
45fffed309
commit
999c49c8e8
@ -994,44 +994,6 @@ const ExPolygons &SliceRecord::get_slice(SliceOrigin o) const
|
|||||||
return idx >= v.size() ? EMPTY_SLICE : v[idx];
|
return idx >= v.size() ? EMPTY_SLICE : v[idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
//bool SLAPrintObject::has_mesh(SLAPrintObjectStep step) const
|
|
||||||
//{
|
|
||||||
// switch (step) {
|
|
||||||
// case slaposAssembly:
|
|
||||||
// return true;
|
|
||||||
// case slaposObjectSlice:
|
|
||||||
// return ! this->m_mesh_from_slices.empty();
|
|
||||||
// case slaposDrillHoles:
|
|
||||||
// return ! this->m_mesh_from_slices.empty();
|
|
||||||
// case slaposSupportTree:
|
|
||||||
// return ! this->support_mesh().empty();
|
|
||||||
// case slaposPad:
|
|
||||||
// return ! this->pad_mesh().empty();
|
|
||||||
// default:
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
//TriangleMesh SLAPrintObject::get_mesh(SLAPrintObjectStep step) const
|
|
||||||
//{
|
|
||||||
// switch (step) {
|
|
||||||
// case slaposAssembly:
|
|
||||||
// return m_transformed_rmesh;
|
|
||||||
// case slaposObjectSlice:
|
|
||||||
// return this->m_mesh_from_slices;
|
|
||||||
// case slaposSupportTree:
|
|
||||||
// return this->support_mesh();
|
|
||||||
// case slaposPad:
|
|
||||||
// return this->pad_mesh();
|
|
||||||
// case slaposDrillHoles:
|
|
||||||
//// if (m_hollowing_data)
|
|
||||||
// return get_mesh_to_print();
|
|
||||||
// [[fallthrough]];
|
|
||||||
// default:
|
|
||||||
// return TriangleMesh();
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
const TriangleMesh& SLAPrintObject::support_mesh() const
|
const TriangleMesh& SLAPrintObject::support_mesh() const
|
||||||
{
|
{
|
||||||
if (m_config.supports_enable.getBool() &&
|
if (m_config.supports_enable.getBool() &&
|
||||||
@ -1068,19 +1030,6 @@ const TriangleMesh &SLAPrintObject::get_mesh_to_print() const
|
|||||||
return *ret;
|
return *ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
//const indexed_triangle_set &SLAPrintObject::hollowed_interior_mesh() const
|
|
||||||
//{
|
|
||||||
// if (m_hollowing_data && m_hollowing_data->interior &&
|
|
||||||
// m_config.hollowing_enable.getBool())
|
|
||||||
// return sla::get_mesh(*m_hollowing_data->interior);
|
|
||||||
|
|
||||||
// return EMPTY_TRIANGLE_SET;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//const TriangleMesh &SLAPrintObject::transformed_mesh() const {
|
|
||||||
// return m_transformed_rmesh;
|
|
||||||
//}
|
|
||||||
|
|
||||||
sla::SupportPoints SLAPrintObject::transformed_support_points() const
|
sla::SupportPoints SLAPrintObject::transformed_support_points() const
|
||||||
{
|
{
|
||||||
assert(m_model_object != nullptr);
|
assert(m_model_object != nullptr);
|
||||||
|
@ -145,26 +145,17 @@ public:
|
|||||||
};
|
};
|
||||||
const std::vector<Instance>& instances() const { return m_instances; }
|
const std::vector<Instance>& instances() const { return m_instances; }
|
||||||
|
|
||||||
// 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.
|
// 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.
|
// Support mesh is only valid if this->is_step_done(slaposSupportTree) is true.
|
||||||
const TriangleMesh& support_mesh() const;
|
const TriangleMesh& support_mesh() const;
|
||||||
// Get a pad mesh centered around origin in XY, and with zero rotation around Z applied.
|
// Get a pad mesh centered around origin in XY, and with zero rotation around Z applied.
|
||||||
// Support mesh is only valid if this->is_step_done(slaposPad) is true.
|
// Support mesh is only valid if this->is_step_done(slaposPad) is true.
|
||||||
const TriangleMesh& pad_mesh() const;
|
const TriangleMesh& pad_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
|
// Get the mesh that is going to be printed with all the modifications
|
||||||
// like hollowing and drilled holes.
|
// like hollowing and drilled holes.
|
||||||
const TriangleMesh & get_mesh_to_print() const;
|
const TriangleMesh & get_mesh_to_print() const;
|
||||||
|
|
||||||
// // This will return the transformed mesh which is cached
|
|
||||||
// const TriangleMesh& transformed_mesh() const;
|
|
||||||
|
|
||||||
sla::SupportPoints transformed_support_points() const;
|
sla::SupportPoints transformed_support_points() const;
|
||||||
sla::DrainHoles transformed_drainhole_points() const;
|
sla::DrainHoles transformed_drainhole_points() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user