-
Notifications
You must be signed in to change notification settings - Fork 51
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
Mike21 Driver #470
Mike21 Driver #470
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.
looks good
definitely not to MDAL API, if you want to can add it to mdal_utils , but it is not necessary |
Fix the issues, you mentioned @PeterPetrik . Also realized that there are few more validations that can be done on the file, so I added them + tests. |
There was an issue where the new driver was trying to load another format, due to too simple |
looks good; @JanCaha you need to add new driver to |
class MeshMike21: public MemoryMesh | ||
{ | ||
public: | ||
MeshMike21( size_t faceVerticesMaximumCount, |
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.
is it necessary to use this new derived class ? I don't see in the code where the methods of this class are used.
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.
This just copies the approach used in 2DM driver and it should allow the use of the mesh structure later. No direct use for those fuctions right now. But for 2DM driver it is rather similar, those functions are only used in ASCII_DAT
format.
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.
I think it is fine... easier to understand it is in-Memory?
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.
Yes
Co-authored-by: Vincent Cloarec <[email protected]>
Co-authored-by: Vincent Cloarec <[email protected]>
Co-authored-by: Vincent Cloarec <[email protected]>
Driver for Mike21 format: https://www.xmswiki.com/wiki/SMS:MIKE_21_*.mesh.
Currently there is some code duplication with 2DM format, which could be eliminated by making functions
_parse_vertex_id_gaps()
and_persist_native_index()
part of MDAL API. Also the class that extendsMemoryMesh
to store vertexIDs that might not be continuous could be generalized and shared by Mike21 and 2DM format.