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

Function Documentation

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

Reads the Geometry XML file.

Parameters:
  • file -- The name of the file

  • materialMapping -- The known mapping between user-provided material ids and our ids for them

Returns:

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