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
af72c0c4
Verified
Commit
af72c0c4
authored
Apr 16, 2021
by
Justin Carpentier
Browse files
assimp: do not add LINES and POINTS when loading a mesh
parent
79aba69b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh_loader/assimp.cpp
View file @
af72c0c4
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2019
,
CNRS - LAAS
* Copyright (c) 2019
-2021
CNRS - LAAS
, INRIA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -75,6 +75,10 @@ Loader::Loader () : importer (new Assimp::Importer())
aiComponent_MATERIALS
|
aiComponent_NORMALS
);
// remove LINES and POINTS
importer
->
SetPropertyInteger
(
AI_CONFIG_PP_SBP_REMOVE
,
aiPrimitiveType_LINE
|
aiPrimitiveType_POINT
);
}
...
...
@@ -93,7 +97,7 @@ void Loader::load (const std::string & resource_path)
// TODO: I (Joseph Mirabel) have no idea whether degenerated triangles are
// properly handled. Enabling aiProcess_FindDegenerates would throw an
// exception when that happens. Is it too conservative ?
//
aiProcess_FindDegenerates |
aiProcess_FindDegenerates
|
aiProcess_JoinIdenticalVertices
);
...
...
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