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

Method getSurface

plugins/script/interfaces/ModelInterface.cpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87ScriptModelSurface ScriptModelNode::getSurface(int surfaceNum)
88{
89 model::ModelNodePtr modelNode = Node_getModel(*this);
90 if (modelNode == NULL) throw std::runtime_error("Empty model node.");
91
92 return ScriptModelSurface(modelNode->getIModel().getSurface(surfaceNum));
93}
94
95model::StringList ScriptModelNode::getActiveMaterials()
96{

Callers 8

TEST_FFunction · 0.80
TEST_FFunction · 0.80
preMethod · 0.80
getLowestVertexOfModelFunction · 0.80
convertModelCmdMethod · 0.80
saveScaledModelMethod · 0.80
processNodesMethod · 0.80

Calls 2

Node_getModelFunction · 0.85
ScriptModelSurfaceClass · 0.85

Tested by 1

preMethod · 0.64