mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
FIX: the volume position is not correct(3mf from solidwork)
Change-Id: I69fe3f9896214da502b60bc23deee6525599677e
This commit is contained in:
parent
abf12366e7
commit
e6e0085dcc
1 changed files with 11 additions and 10 deletions
|
@ -4036,16 +4036,17 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
|
|
||||||
TriangleMesh triangle_mesh(std::move(its), volume_data->mesh_stats);
|
TriangleMesh triangle_mesh(std::move(its), volume_data->mesh_stats);
|
||||||
|
|
||||||
if (!m_is_bbl_3mf) {
|
// BBS: no need to multiply the instance matrix into the volume
|
||||||
// if the 3mf was not produced by BambuStudio and there is only one instance,
|
//if (!m_is_bbl_3mf) {
|
||||||
// bake the transformation into the geometry to allow the reload from disk command
|
// // if the 3mf was not produced by BambuStudio and there is only one instance,
|
||||||
// to work properly
|
// // bake the transformation into the geometry to allow the reload from disk command
|
||||||
if (object.instances.size() == 1) {
|
// // to work properly
|
||||||
triangle_mesh.transform(object.instances.front()->get_transformation().get_matrix(), false);
|
// if (object.instances.size() == 1) {
|
||||||
object.instances.front()->set_transformation(Slic3r::Geometry::Transformation());
|
// triangle_mesh.transform(object.instances.front()->get_transformation().get_matrix(), false);
|
||||||
//FIXME do the mesh fixing?
|
// object.instances.front()->set_transformation(Slic3r::Geometry::Transformation());
|
||||||
}
|
// //FIXME do the mesh fixing?
|
||||||
}
|
// }
|
||||||
|
//}
|
||||||
if (triangle_mesh.volume() < 0)
|
if (triangle_mesh.volume() < 0)
|
||||||
triangle_mesh.flip_triangles();
|
triangle_mesh.flip_triangles();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue