MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / evaluate

Method evaluate

src/module/subdivisionmodule.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30Node* SubDivisionModule::evaluate(const Context& ctx) const
31{
32 int level=0;
33 auto* levelVal=dynamic_cast<NumberValue*>(getParameterArgument(ctx,0));
34 if(levelVal)
35 level=levelVal->toInteger();
36
37 auto* d = new SubDivisionNode();
38 d->setChildren(ctx.getInputNodes());
39 d->setLevel(level);
40 return d;
41}

Callers

nothing calls this directly

Calls 4

toIntegerMethod · 0.80
getInputNodesMethod · 0.80
setLevelMethod · 0.80
setChildrenMethod · 0.45

Tested by

no test coverage detected