ModelObject::instance_bounding_box() fixed to take in account for volumes' transforms

This commit is contained in:
Enrico Turri 2018-11-09 10:31:58 +01:00
parent 06a51f9ed3
commit 12ef6913d5
2 changed files with 16 additions and 4 deletions

View file

@ -516,7 +516,7 @@ public:
// To be called on an external mesh
void transform_mesh(TriangleMesh* mesh, bool dont_translate = false) const;
// Calculate a bounding box of a transformed mesh. To be called on an external mesh.
BoundingBoxf3 transform_mesh_bounding_box(const TriangleMesh* mesh, bool dont_translate = false) const;
BoundingBoxf3 transform_mesh_bounding_box(const TriangleMesh& mesh, bool dont_translate = false) const;
// Transform an external bounding box.
BoundingBoxf3 transform_bounding_box(const BoundingBoxf3 &bbox, bool dont_translate = false) const;
// Transform an external vector.