Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-fcl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
hpp-fcl
Commits
31e52cc9
Commit
31e52cc9
authored
6 years ago
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[OBB] Simplify expression in obbDisjointAndLowerBoundDistance.
parent
0e2a07a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/BV/OBB.cpp
+3
-8
3 additions, 8 deletions
src/BV/OBB.cpp
with
3 additions
and
8 deletions
src/BV/OBB.cpp
+
3
−
8
View file @
31e52cc9
...
...
@@ -314,18 +314,13 @@ bool obbDisjointAndLowerBoundDistance (const Matrix3f& B, const Vec3f& T,
// Corner of b axis aligned bounding box the closest to the origin
Vec3f
AABB_corner
(
T
.
cwiseAbs
()
-
Bf
*
b
);
Vec3f
diff3
(
AABB_corner
-
a
);
diff3
=
diff3
.
cwiseMax
(
0
);
//for (Vec3f::Index i=0; i<3; ++i) diff3 [i] = std::max (0, diff3 [i]);
squaredLowerBoundDistance
=
diff3
.
squaredNorm
();
squaredLowerBoundDistance
=
(
AABB_corner
-
a
).
cwiseMax
(
0
).
squaredNorm
();
if
(
squaredLowerBoundDistance
>
breakDistance2
)
return
true
;
AABB_corner
=
(
B
.
transpose
()
*
T
).
cwiseAbs
()
-
Bf
.
transpose
()
*
a
;
// diff3 = | B^T T| - b - Bf^T a
diff3
=
AABB_corner
-
b
;
diff3
=
diff3
.
cwiseMax
(
0
);
squaredLowerBoundDistance
=
diff3
.
squaredNorm
();
// | B^T T| - b - Bf^T a
squaredLowerBoundDistance
=
(
AABB_corner
-
b
).
cwiseMax
(
0
).
squaredNorm
();
if
(
squaredLowerBoundDistance
>
breakDistance2
)
return
true
;
...
...
This diff is collapsed.
Click to expand it.
Guilhem Saurel
@gsaurel
mentioned in commit
92d6b299
·
6 years ago
mentioned in commit
92d6b299
mentioned in commit 92d6b299333868533a768907d27a3717de06e3e7
Toggle commit list
Guilhem Saurel
@gsaurel
mentioned in commit
5a906e09
·
6 years ago
mentioned in commit
5a906e09
mentioned in commit 5a906e093c2a72f8e21a3467741f68e35b6955d4
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment