Fixed cutting of objects in left oriented coordinate space.
Removed some spurious debugging printf.
This commit is contained in:
parent
9f8ad0153e
commit
527c213b57
@ -1187,8 +1187,9 @@ ModelObjectPtrs ModelObject::cut(size_t instance, coordf_t z, bool keep_upper, b
|
|||||||
else {
|
else {
|
||||||
TriangleMesh upper_mesh, lower_mesh;
|
TriangleMesh upper_mesh, lower_mesh;
|
||||||
|
|
||||||
// Transform the mesh by the combined transformation matrix
|
// Transform the mesh by the combined transformation matrix.
|
||||||
volume->mesh.transform(instance_matrix * volume_matrix);
|
// Flip the triangles in case the composite transformation is left handed.
|
||||||
|
volume->mesh.transform(instance_matrix * volume_matrix, true);
|
||||||
|
|
||||||
// Perform cut
|
// Perform cut
|
||||||
TriangleMeshSlicer tms(&volume->mesh);
|
TriangleMeshSlicer tms(&volume->mesh);
|
||||||
|
@ -507,7 +507,6 @@ void ObjectList::key_event(wxKeyEvent& event)
|
|||||||
|| event.GetKeyCode() == WXK_BACK
|
|| event.GetKeyCode() == WXK_BACK
|
||||||
#endif //__WXOSX__
|
#endif //__WXOSX__
|
||||||
) {
|
) {
|
||||||
printf("WXK_BACK\n");
|
|
||||||
remove();
|
remove();
|
||||||
}
|
}
|
||||||
else if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_SHIFT))
|
else if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_SHIFT))
|
||||||
|
Loading…
Reference in New Issue
Block a user