Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
1ed0bbec
Commit
1ed0bbec
authored
May 14, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BoxesNode: improve bounding box calculation, mention remaining issue
parent
1d530050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Nodes/BoxesNode.cc
Nodes/BoxesNode.cc
+3
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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