projects
/
MicroTrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df8007c
)
fixed Box::Extend(Vec3f&)
master
author
Roland Hieber
<rhieber@gaffel.ibr.cs.tu-bs.de>
Wed, 3 Feb 2010 03:02:34 +0000
(
04:02
+0100)
committer
Roland Hieber
<rhieber@gaffel.ibr.cs.tu-bs.de>
Wed, 3 Feb 2010 03:02:34 +0000
(
04:02
+0100)
Box.cxx
patch
|
blob
|
history
diff --git
a/Box.cxx
b/Box.cxx
index
febe7c7
..
6974d42
100644
(file)
--- a/
Box.cxx
+++ b/
Box.cxx
@@
-42,7
+42,8
@@
Box::Extend(const Vec3f& a)
for(size_t i = 0; i < 3; i++) {
if(a[i] > m_max[i]) {
m_max[i] = a[i];
for(size_t i = 0; i < 3; i++) {
if(a[i] > m_max[i]) {
m_max[i] = a[i];
- } else if(a[i] < m_min[i]) {
+ }
+ if(a[i] < m_min[i]) {
m_min[i] = a[i];
} // else: do nothing, coordinate is inside the box
}
m_min[i] = a[i];
} // else: do nothing, coordinate is inside the box
}
This page took
0.021691 seconds
and
4
git commands to generate.