-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BRAYNS-316 Remove assimp #967
Conversation
.gitlab-ci.viz.yml
Outdated
@@ -1,16 +1,13 @@ | |||
stages: | |||
- test | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the removal of the blank lines? I added them for split clarity between jobs and env config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry it seems it is the auto formatter, I will remove it.
brayns/io/loaders/MeshLoader.cpp
Outdated
constexpr float TOTAL_PROGRESS = 100.f; | ||
constexpr float LOADING_FRACTION = 50.f; | ||
constexpr float POST_LOADING_FRACTION = 50.f; | ||
using namespace brayns; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using namespace
can lead to issues later, it is better to avoid them.
brayns/io/loaders/MeshLoader.h
Outdated
* Materials are not extracted. | ||
* | ||
* A default white material is used for the mesh model. | ||
* | ||
*/ | ||
class MeshLoader : public Loader<MeshLoaderParameters> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the load configuration parameters are not used anymore, MeshLoader can extend NoInputLoader
and avoid the (void)parameters
on the source file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we can get rid of the MeshLoaderParameters.h file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left some minor comments
Assimp replaced by custom mesh parsers (no libraries).
Supports files OBJ, PLY, STL and OFF.
No materials extracted, just a default white one for the whole mesh.
No triangulation (only supports triangular faces).
Vertex duplication for all formats (vertex count = index count).
An OBJ file can contain multiple objects.
A PLY file can have position, normal, color and texture coordinates (vertex + face) in vertices.
STL complete support.
Only positions supported in OFF files.