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

Method getNumFaces

plugins/script/interfaces/BrushInterface.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84{}
85
86std::size_t ScriptBrushNode::getNumFaces() {
87 // Sanity check
88 scene::INodePtr node = _node.lock();
89 if (node == NULL) return 0;
90
91 IBrush* brush = Node_getIBrush(node);
92
93 return (brush != NULL) ? brush->getNumFaces() : 0;
94}
95
96ScriptFace ScriptBrushNode::getFace(std::size_t index)
97{

Callers 2

getFaceMethod · 0.45
preMethod · 0.45

Calls 1

Node_getIBrushFunction · 0.85

Tested by

no test coverage detected