MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getNewIndex

Function getNewIndex

tools/modeltool/modeltool.cpp:625–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625static int getNewIndex(const CVector3& vert, tvVec3List& vertList) {
626 tvVec3List::iterator itr = vertList.begin();
627
628 int count = 0;
629 while (itr != vertList.end()) {
630 if (itr->same(vert)) {
631 return count;
632 }
633 count++;
634 itr++;
635 }
636 vertList.push_back(vert);
637 return count;
638}
639
640static int getNewIndex(const CVector2& vert, tvVec2List& vertList) {
641 tvVec2List::iterator itr = vertList.begin();

Callers 2

computeCornerFunction · 0.85
writeDrawInfoBZWFunction · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
sameMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected