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

Method getPatch

plugins/script/interfaces/PatchInterface.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23ScriptPatchNode ScriptPatchNode::getPatch(const ScriptSceneNode& node)
24{
25 // Try to cast the node onto a patch
26 IPatchNodePtr patchNode = std::dynamic_pointer_cast<IPatchNode>(
27 static_cast<scene::INodePtr>(node)
28 );
29
30 // Construct a patchNode (contained node may be NULL)
31 return (patchNode != NULL) ? ScriptPatchNode(node) : ScriptPatchNode(scene::INodePtr());
32}
33
34void ScriptPatchNode::setDims(std::size_t width, std::size_t height)
35{

Callers 15

updateMethod · 0.80
loadControlVertexMethod · 0.80
setPatchMethod · 0.80
emitCoordsMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
performPatchWeldingFunction · 0.80
verifyMergedPatchFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
createWorldspawnPatchFunction · 0.80
TEST_FFunction · 0.80

Calls 1

ScriptPatchNodeClass · 0.85

Tested by 7

updateMethod · 0.64
loadControlVertexMethod · 0.64
setPatchMethod · 0.64
emitCoordsMethod · 0.64
visitMethod · 0.64
preMethod · 0.64
preMethod · 0.64