mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-31 05:51:49 -06:00
ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE -> Smoothing algorithm modified to give more weight close to height limits
This commit is contained in:
parent
64830ac827
commit
79d516ca7f
2 changed files with 20 additions and 11 deletions
|
@ -37,6 +37,10 @@ void SlicingAdaptive::prepare()
|
|||
m_mesh = m_object->raw_mesh();
|
||||
const ModelInstance* first_instance = m_object->instances.front();
|
||||
m_mesh.transform(first_instance->get_matrix(), first_instance->is_left_handed());
|
||||
for (stl_facet& facet : m_mesh.stl.facet_start)
|
||||
{
|
||||
facet.normal.normalize();
|
||||
}
|
||||
|
||||
// 1) Collect faces from mesh.
|
||||
m_faces.reserve(m_mesh.stl.stats.number_of_facets);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue