Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
1ed0bbec
Commit
1ed0bbec
authored
May 14, 2019
by
Martin Heistermann
Browse files
BoxesNode: improve bounding box calculation, mention remaining issue
parent
1d530050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Nodes/BoxesNode.cc
View file @
1ed0bbec
...
...
@@ -98,9 +98,10 @@ void
BoxesNode
::
boundingBox
(
Vec3d
&
_bbMin
,
Vec3d
&
_bbMax
)
{
// FIXME: this assumes matrices to only consist of vectors up to unit length
for
(
const
auto
&
be
:
elem_
)
{
_bbMax
.
maximize
(
be
.
pos
+
Vec3d
(
1.
,
1.
,
1.
));
_bbMin
.
minimize
(
be
.
pos
+
Vec3d
(
-
1.
,
-
1.
,
-
1.
));
_bbMax
.
maximize
(
be
.
pos
+
Vec3d
(
scaleFactor_
,
scaleFactor_
,
scaleFactor_
));
_bbMin
.
minimize
(
be
.
pos
+
Vec3d
(
-
scaleFactor_
,
-
scaleFactor_
,
-
scaleFactor_
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment