Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-fcl
Commits
89c0170c
Commit
89c0170c
authored
Aug 28, 2019
by
Joseph Mirabel
Browse files
[GJK] SimplexV.d is not normalized.
parent
9812d9bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/narrowphase/gjk.cpp
View file @
89c0170c
...
...
@@ -419,9 +419,9 @@ GJK::Status GJK::evaluate(const MinkowskiDiff& shape_, const Vec3f& guess)
void
GJK
::
getSupport
(
const
Vec3f
&
d
,
bool
dIsNormalized
,
SimplexV
&
sv
)
const
{
if
(
dIsNormalized
)
sv
.
d
=
d
;
else
sv
.
d
.
noalias
()
=
d
.
normalized
()
;
shape
.
support
(
sv
.
d
,
true
,
sv
.
w
);
// Was sv.d.noalias() = d.normalized()
;
sv
.
d
.
noalias
()
=
d
;
shape
.
support
(
sv
.
d
,
dIsNormalized
,
sv
.
w
);
}
void
GJK
::
removeVertex
(
Simplex
&
simplex
)
...
...
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