Extracts Name from (can accept node == nullptr)
| 309 | // Extracts Name from (can accept node == nullptr) |
| 310 | // <ref id="Name"/> |
| 311 | std::string parseMatID(const rapidxml::xml_node<>* node) |
| 312 | { |
| 313 | std::string res; |
| 314 | if (node) |
| 315 | { |
| 316 | const rapidxml::xml_attribute<>* id = node->first_attribute("id"); |
| 317 | res = id->value(); |
| 318 | } |
| 319 | return res; |
| 320 | } |
| 321 | |
| 322 | bool shouldFlipNormals(const rapidxml::xml_node<>* shape) |
| 323 | { |