MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getFace

Method getFace

plugins/script/interfaces/BrushInterface.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96ScriptFace ScriptBrushNode::getFace(std::size_t index)
97{
98 IBrushNodePtr brushNode = std::dynamic_pointer_cast<IBrushNode>(_node.lock());
99 if (brushNode == NULL) return ScriptFace();
100
101 IBrush& brush = brushNode->getIBrush();
102 return (index < brush.getNumFaces()) ? ScriptFace(brush.getFace(index)) : ScriptFace();
103}
104
105bool ScriptBrushNode::empty() const
106{

Callers 15

TEST_FFunction · 0.45
checkFaceNormalAndShaderFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
findBrushFaceWithNormalFunction · 0.45
foreachFaceFunction · 0.45
checkBrushMethod · 0.45
preMethod · 0.45

Calls 2

ScriptFaceClass · 0.85
getNumFacesMethod · 0.45

Tested by 1

preMethod · 0.36