LHEEA / meshmagick

A command line tool and a python package to manipulate hydrodynamics meshes
GNU General Public License v3.0
47 stars 27 forks source link

Generalize GDF read to accept multiple formats #32

Closed michaelcdevin closed 3 years ago

michaelcdevin commented 3 years ago

Resolves #31

Previously, load_GDF only accepted GDF files that had each vertex on its own line, so the coordinates for each face were 4x3. However, GDF files can also have other formats, such as all four vertices sharing a line, so each face is 1x12. This makes it so load_GDF can parse any format of GDF file regardless of line breaks, as long as each face is separated by a line break.

frongere commented 3 years ago

After a while, Thanks!