Follow-up of 763a91e2ca -> take in account of ModelObject::origin_translation when saving parts and modifiers to stl

This commit is contained in:
Enrico Turri 2019-04-05 10:08:34 +02:00
parent 88059baddb
commit a9223aeb5f
3 changed files with 11 additions and 4 deletions

View file

@ -273,6 +273,11 @@ void TriangleMesh::translate(float x, float y, float z)
stl_invalidate_shared_vertices(&this->stl);
}
void TriangleMesh::translate(const Vec3f &displacement)
{
translate(displacement(0), displacement(1), displacement(2));
}
void TriangleMesh::rotate(float angle, const Axis &axis)
{
if (angle == 0.f)