Function readMaterials(const std::string&, std::map<std::string, int32_t>&)

Function Documentation

int readMaterials(const std::string &file, std::map<std::string, int32_t> &materialMapping)

Reads the Materials XML file.

Parameters:
  • file -- The name of the file

  • materialMapping -- The mapping of user-provided material ids and our internal id

Returns:

EXIT_FAILURE in case of issue in the XML file (missing or unreadable field) EXIT_SUCCESS otherwise