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
Guilhem Saurel
hpp-fcl
Commits
a52fdba7
Commit
a52fdba7
authored
Dec 27, 2012
by
panjia1983
Browse files
Update src/intersect.cpp
fix the crash caused by the typo in intersect_Triangle
parent
4c141b41
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/intersect.cpp
View file @
a52fdba7
...
...
@@ -900,7 +900,7 @@ bool Intersect::intersect_Triangle(const Vec3f& P1, const Vec3f& P2, const Vec3f
if
(
penetration_depth1
>
penetration_depth2
)
{
*
num_contact_points
=
std
::
min
(
num_deepest_points2
,
(
unsigned
int
)
2
);
for
(
unsigned
int
i
=
0
;
i
<
num_
deepes
t_points
2
;
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
*
num_
contac
t_points
;
++
i
)
{
contact_points
[
i
]
=
deepest_points2
[
i
];
}
...
...
@@ -911,7 +911,7 @@ bool Intersect::intersect_Triangle(const Vec3f& P1, const Vec3f& P2, const Vec3f
else
{
*
num_contact_points
=
std
::
min
(
num_deepest_points1
,
(
unsigned
int
)
2
);
for
(
unsigned
int
i
=
0
;
i
<
num_
deepes
t_points
1
;
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
*
num_
contac
t_points
;
++
i
)
{
contact_points
[
i
]
=
deepest_points1
[
i
];
}
...
...
Write
Preview
Supports
Markdown
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