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
602e309a
Commit
602e309a
authored
Oct 04, 2016
by
Justin Carpentier
Committed by
GitHub
Oct 04, 2016
Browse files
Merge pull request #19 from jcarpent/devel
Fix assimp version lower than 2.9.0 + add missing linkage
parents
5f2e2ad7
33483cdf
Changes
1
Show whitespace changes
Inline
Side-by-side
include/hpp/fcl/mesh_loader/assimp.h
View file @
602e309a
...
@@ -166,9 +166,11 @@ inline void buildMesh (const fcl::Vec3f & scale,
...
@@ -166,9 +166,11 @@ inline void buildMesh (const fcl::Vec3f & scale,
aiFace
&
face
=
input_mesh
->
mFaces
[
j
];
aiFace
&
face
=
input_mesh
->
mFaces
[
j
];
if
(
face
.
mNumIndices
!=
3
)
{
if
(
face
.
mNumIndices
!=
3
)
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
#ifdef FCL_USE_ASSIMP_UNIFIED_HEADER_NAMES
ss
<<
"Mesh "
<<
input_mesh
->
mName
.
C_Str
()
<<
" has a face with "
ss
<<
"Mesh "
<<
input_mesh
->
mName
.
C_Str
()
<<
" has a face with "
<<
face
.
mNumIndices
<<
" vertices. This is not supported
\n
"
;
<<
face
.
mNumIndices
<<
" vertices. This is not supported
\n
"
;
ss
<<
"Node name is: "
<<
node
->
mName
.
C_Str
()
<<
"
\n
"
;
ss
<<
"Node name is: "
<<
node
->
mName
.
C_Str
()
<<
"
\n
"
;
#endif
ss
<<
"Mesh index: "
<<
i
<<
"
\n
"
;
ss
<<
"Mesh index: "
<<
i
<<
"
\n
"
;
ss
<<
"Face index: "
<<
j
<<
"
\n
"
;
ss
<<
"Face index: "
<<
j
<<
"
\n
"
;
throw
std
::
invalid_argument
(
ss
.
str
());
throw
std
::
invalid_argument
(
ss
.
str
());
...
...
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