MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / evaluate_formula

Method evaluate_formula

tools/Wires/Parameters/PatternParameter.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace PyMesh;
7
8void PatternParameter::evaluate_formula(
9 const PatternParameter::Variables& vars) {
10 Variables::const_iterator itr = vars.find(m_formula);
11 if (itr == vars.end()) {
12 std::stringstream err_msg;
13 err_msg << "Cannot apply formula: " << m_formula;
14 throw RuntimeError(err_msg.str());
15 }
16 m_value = itr->second;
17}

Callers

nothing calls this directly

Calls 4

RuntimeErrorClass · 0.85
findMethod · 0.80
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected