FIX: rotate model before cut, the rotation of connectors is incorrect

github issue #1646 & #1647

Change-Id: Iab1d6984685a532011f425e704ccae039a6ef65d
This commit is contained in:
zhimin.zeng 2023-04-21 11:02:36 +08:00 committed by Lane.Wei
parent 7a988c1e44
commit d5017bd9b0

View file

@ -1846,7 +1846,7 @@ void ModelObject::process_connector_cut(
// Perform cut
TriangleMesh upper_mesh, lower_mesh;
process_volume_cut(volume, instance_matrix, cut_matrix, attributes, upper_mesh, lower_mesh);
process_volume_cut(volume, Transform3d::Identity(), cut_matrix, attributes, upper_mesh, lower_mesh);
// add small Z offset to better preview
upper_mesh.translate((-0.05 * Vec3d::UnitZ()).cast<float>());