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

Method GetFaceMesh

src/lua/LuaObstacle.cpp:533–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531
532
533int LuaObstacle::GetFaceMesh(lua_State* L) {
534 const MeshFace* face = ParseMeshFace(L, 1);
535 if (face == NULL) {
536 return luaL_pushnil(L);
537 }
538 const MeshObstacle* mesh = face->getMesh();
539 if (mesh == NULL) {
540 lua_pushboolean(L, false);
541 return 1;
542 }
543 PushObstacleGUID(L, mesh->getGUID());
544 return 1;
545}
546
547
548int LuaObstacle::GetFaceElementCount(lua_State* L) {

Callers

nothing calls this directly

Calls 6

ParseMeshFaceFunction · 0.85
luaL_pushnilFunction · 0.85
PushObstacleGUIDFunction · 0.85
getMeshMethod · 0.80
getGUIDMethod · 0.80
lua_pushbooleanFunction · 0.50

Tested by

no test coverage detected