recognize STL files starting with "solid binary" as binary files
This commit is contained in:
@ -1055,6 +1055,9 @@ void CreateAtoms::add_mesh(const char *filename)
|
|||||||
throw TokenizerException("Invalid STL mesh file format", "");
|
throw TokenizerException("Invalid STL mesh file format", "");
|
||||||
|
|
||||||
line += 6;
|
line += 6;
|
||||||
|
if (utils::strmatch(line, "^binary"))
|
||||||
|
throw TokenizerException("Invalid STL mesh file format", "");
|
||||||
|
|
||||||
if (comm->me == 0)
|
if (comm->me == 0)
|
||||||
utils::logmesg(lmp, "Reading STL object {} from text file {}\n", utils::trim(line), filename);
|
utils::logmesg(lmp, "Reading STL object {} from text file {}\n", utils::trim(line), filename);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user