From 3cda1c6f5a9cc1f840d0d122c0b4ade644a8b6a8 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 8 Mar 2015 23:56:21 -0400 Subject: [PATCH] bboxes should be recalculated after transformations. We could filter out rotation transforms but this is easier for now --- src/polyset.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/polyset.cc b/src/polyset.cc index 9c940395..618c4418 100644 --- a/src/polyset.cc +++ b/src/polyset.cc @@ -167,11 +167,7 @@ void PolySet::transform(const Transform3d &mat) } if (mirrored) std::reverse(p.begin(), p.end()); } - - if (!dirty && !this->bbox.isNull()) { - this->bbox.min() = mat * this->bbox.min(); - this->bbox.max() = mat * this->bbox.max(); - } + this->dirty = true; } bool PolySet::is_convex() const {