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

Method GetFaceElementCount

src/lua/LuaObstacle.cpp:548–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546
547
548int LuaObstacle::GetFaceElementCount(lua_State* L) {
549 const MeshFace* face = ParseMeshFace(L, 1);
550 if (face == NULL) {
551 return luaL_pushnil(L);
552 }
553 const int elements = face->getVertexCount();
554 lua_pushinteger(L, elements);
555 return 1;
556}
557
558
559int LuaObstacle::GetFaceVerts(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseMeshFaceFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
getVertexCountMethod · 0.45

Tested by

no test coverage detected