Skip to content

Commit

Permalink
Fix bbox initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelRL committed Nov 29, 2023
1 parent 1dc0ba2 commit 7b79189
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,13 @@ public Q_SLOTS:
std::cout << segments.size() << " edges" << std::endl;
std::cout << points.size() << " points" << std::endl;

if(!triangles.empty())
m_wrap_bbox = triangles.front().bbox();
else if(!segments.empty())
m_wrap_bbox = segments.front().bbox();
else if(!points.empty())
m_wrap_bbox = points.front().bbox();

for(const Kernel::Triangle_3& tr : triangles)
m_wrap_bbox += tr.bbox();
for(const Kernel::Segment_3& sg : segments)
Expand Down

0 comments on commit 7b79189

Please sign in to comment.