| 278 | } |
| 279 | |
| 280 | void OBJReader::parseGroup(const char *begin, const char *end) |
| 281 | { |
| 282 | // set current group |
| 283 | vector<string> groupNames; |
| 284 | srule grouping = "g" >> *(lexeme_d[alnum_p >> *(alnum_p)][append(groupNames)]); |
| 285 | |
| 286 | parse(begin, grouping, space_p); |
| 287 | |
| 288 | // from 'http://local.wasp.uwa.edu.au/~pbourke/dataformats/obj/': |
| 289 | // The default group name is default. |
| 290 | if(groupNames.empty()) |
| 291 | { |
| 292 | groupNames.push_back("default"); |
| 293 | } |
| 294 | |
| 295 | // \todo associate mesh objects with group names |
| 296 | } |
| 297 | |
| 298 | void OBJReader::parseOBJ() { |
| 299 | |