Skip to content
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

Merged
merged 2 commits into from
Jan 24, 2022
Merged

BRAYNS-316 Remove assimp #967

merged 2 commits into from
Jan 24, 2022

Conversation

Adrien4193
Copy link
Contributor

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.

@Adrien4193 Adrien4193 requested a review from NadirRoGue January 24, 2022 13:51
@@ -1,16 +1,13 @@
stages:
- test


Copy link
Contributor

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.

Copy link
Contributor Author

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.

constexpr float TOTAL_PROGRESS = 100.f;
constexpr float LOADING_FRACTION = 50.f;
constexpr float POST_LOADING_FRACTION = 50.f;
using namespace brayns;
Copy link
Contributor

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.

* Materials are not extracted.
*
* A default white material is used for the mesh model.
*
*/
class MeshLoader : public Loader<MeshLoaderParameters>
Copy link
Contributor

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?

Copy link
Contributor

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

NadirRoGue
NadirRoGue previously approved these changes Jan 24, 2022
Copy link
Contributor

@NadirRoGue NadirRoGue left a 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

@Adrien4193 Adrien4193 merged commit 427486e into develop Jan 24, 2022
@Adrien4193 Adrien4193 deleted the BRAYNS-316_RemoveAssimp2 branch January 24, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants