Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
700a16fd
Commit
700a16fd
authored
Oct 13, 2020
by
TheNumbat
Browse files
skip <3 vert faces
parent
f959bd58
Changes
1
Show whitespace changes
Inline
Side-by-side
src/scene/scene.cpp
View file @
700a16fd
...
...
@@ -324,6 +324,7 @@ static void load_node(Scene &scobj, std::vector<std::string> &errors,
std
::
vector
<
std
::
vector
<
Halfedge_Mesh
::
Index
>>
polys
;
for
(
unsigned
int
j
=
0
;
j
<
mesh
->
mNumFaces
;
j
++
)
{
const
aiFace
&
face
=
mesh
->
mFaces
[
j
];
if
(
face
.
mNumIndices
<
3
)
continue
;
std
::
vector
<
Halfedge_Mesh
::
Index
>
poly
;
for
(
unsigned
int
k
=
0
;
k
<
face
.
mNumIndices
;
k
++
)
{
poly
.
push_back
(
face
.
mIndices
[
k
]);
...
...
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