MCPcopy Create free account
hub / github.com/ImageEngine/cortex / parseGroup

Method parseGroup

src/IECoreScene/OBJReader.cpp:280–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void 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
298void OBJReader::parseOBJ() {
299

Callers

nothing calls this directly

Calls 1

appendFunction · 0.50

Tested by

no test coverage detected