Fix mirroring inside volumes trafos
Fix leftover after successive slicing runs
This commit is contained in:
parent
53287002b3
commit
b403ba10c1
@ -26,7 +26,8 @@ MeshBoolean::cgal::CGALMeshPtr get_cgalmesh(const CSGPartT &csgpart)
|
||||
MeshBoolean::cgal::CGALMeshPtr ret;
|
||||
|
||||
indexed_triangle_set m = *its;
|
||||
its_transform(m, get_transform(csgpart));
|
||||
auto tr = get_transform(csgpart);
|
||||
its_transform(m, get_transform(csgpart), true);
|
||||
|
||||
try {
|
||||
ret = MeshBoolean::cgal::triangle_mesh_to_cgal(m);
|
||||
|
@ -150,7 +150,7 @@ static indexed_triangle_set csgmesh_merge_positive_parts(const Cont &csgmesh)
|
||||
const indexed_triangle_set * pmesh = csg::get_mesh(csgpart);
|
||||
if (pmesh && op == csg::CSGType::Union) {
|
||||
indexed_triangle_set mcpy = *pmesh;
|
||||
its_transform(mcpy, csg::get_transform(csgpart));
|
||||
its_transform(mcpy, csg::get_transform(csgpart), true);
|
||||
its_merge(m, mcpy);
|
||||
}
|
||||
}
|
||||
@ -292,7 +292,6 @@ void SLAPrint::Steps::generate_preview(SLAPrintObject &po, SLAPrintObjectStep st
|
||||
m = generate_preview_vdb(po, step);
|
||||
}
|
||||
|
||||
if (!m.empty())
|
||||
po.m_preview_meshes[step] =
|
||||
std::make_shared<const indexed_triangle_set>(std::move(m));
|
||||
|
||||
@ -408,13 +407,7 @@ void SLAPrint::Steps::drill_holes(SLAPrintObject &po)
|
||||
csg_inserter{po.m_mesh_to_slice, slaposDrillHoles},
|
||||
csg::mpartsDrillHoles);
|
||||
|
||||
auto r = po.m_mesh_to_slice.equal_range(slaposDrillHoles);
|
||||
|
||||
// update preview mesh
|
||||
if (r.first != r.second)
|
||||
generate_preview(po, slaposDrillHoles);
|
||||
else
|
||||
po.m_preview_meshes[slaposDrillHoles] = po.get_mesh_to_print();
|
||||
|
||||
// Release the data, won't be needed anymore, takes huge amount of ram
|
||||
if (po.m_hollowing_data && po.m_hollowing_data->interior)
|
||||
|
Loading…
Reference in New Issue
Block a user