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

Mesh_3/SMDS_3: Fix reading of .mesh files #7971

Merged
merged 3 commits into from
Jan 24, 2024

Commits on Jan 11, 2024

  1. Mesh_3/SMDS_3: Fix reading of .mesh files

    With a `.mesh` containing `Triangles` in a comment, like that one:
    
    ```
    MeshVersionFormatted 1
    
    Dimension
    3
    
    Vertices
    121
    -10.0402  -10.0402  -10.0402    0
    -10  10  10    0
    10  10  10    0
    [...]
    Triangles
    609
         98     76     65    0
         98     81     76    0
         65     81     98    0
    Tetrahedra
    244
         81     65     76     98  0
         28      1     37     34  0
         69     25     70     94  0
    [...]
    End
    ```
    
    then the code failed. It read `Triangles` as the beginning of the triangles section.
    
    The commit use `std::getline()` to read the comments and the keywords:
    - `Vertices`
    - `Triangles`
    - `Tetrahedra`
    lrineau committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    074a337 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Configuration menu
    Copy the full SHA
    c539c56 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    885647f View commit details
    Browse the repository at this point in the history