-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update refactoring code, new file loader #10
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks for the proposal.
A few minors edits to fix, but it is a good start to build on.
src/GUI.h
Outdated
|
||
}; // class GUI | ||
|
||
#include "GUI.hpp" |
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.
Gui.hpp should be a cpp file as the class is not template and all functions are not inlined.
src/MyPointCloud.h
Outdated
m_max = m_vertices.colwise().maxCoeff(); | ||
} | ||
|
||
}; // class MyPointCloud |
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.
Add empty line at the end of the file
src/defines.h
Outdated
#include "PointProcessing.h" | ||
|
||
// CloudGeneration | ||
#include "CloudGeneration.h" |
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.
Add empty line at the end of the file
src/definitions.h
Outdated
Ponca::Basket<PPAdapter, SmoothWeightFunc, Ponca::CovariancePlaneFit>, | ||
Ponca::DiffType::FitSpaceDer, | ||
Ponca::CovariancePlaneDer, | ||
Ponca::CurvatureEstimatorBase, Ponca::NormalDerivativesCurvatureEstimator>; |
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.
Add empty line
minor fixes Minor fixes 2
There is a bug occurring during the loading of some PLY files which not contain mesh information. Some files with only vertex information (with normal) given work well, and others don't. I found that the issue is throwing by the "readPLY" function, when searching if it exists faces. A 0 division occurs at this moment. I think, for the moment, it occurs when the PLY file contains certain information like the line : "element face 0". Maybe the ply file wasn't well organize, or maybe I need to put an issue to this repo. |
Right now the code automatically load the armadillo, and there is no way to pass options from the command line, right ? so |
Yes, if we don't change the code, there is no problem for the user. But, if someone change the filename here it could create the bug. |
Did we had this bug before your PR ? |
As we may see it here into the current version of Poncascope, only obj file could be loaded. So, we didn't had this bug before. In fact, this PR allows the user to use other files, computed by the LibIGL library, as used with the function read_triangle_mesh here. It created the pointCloud, using the vertices and compute the normals thanks to the mesh. Maybe it isn't well pertinent, and it could exist an other way to use correctly the library. |
This pull request introduces a new code architecture designed to facilitate the implementation of new features.
Additional updates include: