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
e8764dd4
Verified
Commit
e8764dd4
authored
Apr 16, 2021
by
Justin Carpentier
Browse files
assimp: remove now useless throw
parent
5f87cb54
Pipeline
#14066
passed with stage
in 43 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mesh_loader/assimp.cpp
View file @
e8764dd4
...
...
@@ -163,15 +163,7 @@ unsigned recurseBuildMesh (
for
(
uint32_t
j
=
0
;
j
<
input_mesh
->
mNumFaces
;
j
++
)
{
aiFace
&
face
=
input_mesh
->
mFaces
[
j
];
if
(
face
.
mNumIndices
!=
3
)
{
std
::
stringstream
ss
;
ss
<<
"Mesh "
<<
input_mesh
->
mName
.
C_Str
()
<<
" has a face with "
<<
face
.
mNumIndices
<<
" vertices. This is not supported
\n
"
;
ss
<<
"Node name is: "
<<
node
->
mName
.
C_Str
()
<<
"
\n
"
;
ss
<<
"Mesh index: "
<<
i
<<
"
\n
"
;
ss
<<
"Face index: "
<<
j
<<
"
\n
"
;
throw
std
::
invalid_argument
(
ss
.
str
());
}
assert
(
face
.
mNumIndices
==
3
&&
"The size of the face is not valid."
);
tv
.
triangles_
.
push_back
(
fcl
::
Triangle
(
vertices_offset
+
face
.
mIndices
[
0
],
vertices_offset
+
face
.
mIndices
[
1
],
vertices_offset
+
face
.
mIndices
[
2
]));
...
...
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