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

Function parse_value

tools/Wires/Parameters/ParameterManager.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 Float parse_value(const std::string& data) {
34 Float result = 0.0;
35 try {
36 result = std::stof(data);
37 } catch (std::exception& e) {
38 // conversion failed.
39 }
40 return result;
41 }
42
43 std::string parse_formula(const std::string& data) {
44 size_t begin_pos = data.find('{');

Callers 2

parse_offset_parametersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected