-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add material surface mesh reader #1677
base: master
Are you sure you want to change the base?
Add material surface mesh reader #1677
Conversation
I have no idea why the testMeshVoxelization test aborts. It is not related to this PR. |
…SurfaceMeshReader
#1674 fixes the python test issues |
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.
Thx, just few comments.
/// Reads an input file as an OBJ file format and outputs the | ||
/// corresponding surface mesh. | ||
/// | ||
/// @param[in,out] input the input stream where the OBJ file is read. |
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.
/// @param[in,out] input the input stream where the OBJ file is read. | |
/// @param[in,out] input the input stream from which the OBJ file is read. |
?
@@ -89,6 +99,11 @@ readOBJ( std::istream & input, SurfaceMesh & smesh ) | |||
} else if ( keyword == "vn" ) { | |||
lineinput >> n[ 0 ] >> n[ 1 ] >> n[ 2 ]; | |||
normals.push_back( n ); | |||
} else if ( keyword == "usemtl" ) { |
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.
Could you please reformat with the ˋ{`on single lines?
/// | ||
/// @param[in,out] input the input stream where the OBJ file is read. | ||
/// @param[out] smesh the output surface mesh. | ||
/// @param[out] materials a vector containing the material of each face (an index). |
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.
/// @param[out] materials a vector containing the material of each face (an index). | |
/// @param[out] materials a vector containing the material of each face (an index, may be empty) |
If there is no material info, an empty vector is retuned, right ?
PR Description
Add reading material information in OBJ files for SurfaceMeshReader.
Checklist