| 6 | using namespace PyMesh; |
| 7 | |
| 8 | void 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 | } |
nothing calls this directly
no test coverage detected