Changeset 167 in flair-src for trunk/lib/FlairSimulator/src/Parser.cpp
- Timestamp:
- 04/12/17 13:59:38 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Parser.cpp
r158 r167 210 210 } 211 211 212 Vector3D Parser::getMeshVector3D(xmlNode *mesh_node, xmlChar *param) {212 Vector3Df Parser::getMeshVector3D(xmlNode *mesh_node, xmlChar *param) { 213 213 xmlNode *cur_node = NULL; 214 214 for (cur_node = mesh_node; cur_node; cur_node = cur_node->next) { 215 215 if (xmlStrEqual(cur_node->name, param)) { 216 return Vector3D (atof((char *)xmlGetProp(cur_node, (xmlChar *)"x")),216 return Vector3Df(atof((char *)xmlGetProp(cur_node, (xmlChar *)"x")), 217 217 atof((char *)xmlGetProp(cur_node, (xmlChar *)"y")), 218 218 atof((char *)xmlGetProp(cur_node, (xmlChar *)"z"))); 219 219 } 220 220 } 221 return Vector3D (0, 0, 0);221 return Vector3Df(0, 0, 0); 222 222 } 223 223
Note:
See TracChangeset
for help on using the changeset viewer.