| 67 | } |
| 68 | |
| 69 | aiFace ReadTriangle(XmlNode &node, int &texId0, int &texId1, int &texId2) { |
| 70 | aiFace face; |
| 71 | |
| 72 | face.mNumIndices = 3; |
| 73 | face.mIndices = new unsigned int[face.mNumIndices]; |
| 74 | face.mIndices[0] = static_cast<unsigned int>(std::atoi(node.attribute(XmlTag::v1).as_string())); |
| 75 | face.mIndices[1] = static_cast<unsigned int>(std::atoi(node.attribute(XmlTag::v2).as_string())); |
| 76 | face.mIndices[2] = static_cast<unsigned int>(std::atoi(node.attribute(XmlTag::v3).as_string())); |
| 77 | |
| 78 | texId0 = texId1 = texId2 = IdNotSet; |
| 79 | XmlParser::getIntAttribute(node, XmlTag::p1, texId0); |
| 80 | XmlParser::getIntAttribute(node, XmlTag::p2, texId1); |
| 81 | XmlParser::getIntAttribute(node, XmlTag::p3, texId2); |
| 82 | |
| 83 | return face; |
| 84 | } |
| 85 | |
| 86 | aiVector3D ReadVertex(XmlNode &node) { |
| 87 | aiVector3D vertex; |
no test coverage detected