MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / parseFaces

Function parseFaces

Tools/VRMLConverter/src/VRML2mesh.cpp:460–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460void parseFaces(FaceVec &faces, const IndexedFaceSet *ifs)
461{
462 face f;
463 for (IntVec::const_iterator i=ifs->coordIndex.begin(), e=ifs->coordIndex.end(); i!=e; ++i) {
464 if (*i == -1) {
465 faces.resize(faces.size()+1);
466 faces.back().indices.swap(f.indices);
467 } else
468 f.indices.push_back(i - ifs->coordIndex.begin());
469 }
470 if (!f.indices.empty()) {
471 faces.resize(faces.size()+1);
472 faces.back().indices.swap(f.indices);
473 }
474}
475
476Ogre::MaterialPtr parseMaterial(const Appearance *app, const String &name)
477{

Callers 1

parseShapeFunction · 0.85

Calls 8

beginMethod · 0.45
endMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
swapMethod · 0.45
backMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected