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

Method evaluate

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

Source from the content-addressed store, hash-verified

28}
29
30Node* HullModule::evaluate(const Context& ctx) const
31{
32 bool concave=false;
33 auto* concaveVal = dynamic_cast<BooleanValue*>(getParameterArgument(ctx,0));
34 if(concaveVal)
35 concave=concaveVal->isTrue();
36
37 auto* d = new HullNode();
38 d->setConcave(concave);
39 d->setChildren(ctx.getInputNodes());
40 return d;
41}

Callers

nothing calls this directly

Calls 4

setConcaveMethod · 0.80
getInputNodesMethod · 0.80
isTrueMethod · 0.45
setChildrenMethod · 0.45

Tested by

no test coverage detected