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

Method evaluate

tools/Wires/Parameters/OffsetParameters.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86MatrixFr OffsetParameters::evaluate(const OffsetParameters::Variables& vars) {
87 const size_t dim = m_wire_network->get_dim();
88 const size_t size = m_wire_network->get_num_vertices();
89 VectorF offset = VectorF::Ones(size * dim) * m_default_offset;
90 for (auto param : m_params) {
91 param->apply(offset, vars);
92 }
93 MatrixFr results = Eigen::Map<MatrixFr>(offset.data(), size, dim);
94 return results;
95}

Callers 4

evaluate_thicknessMethod · 0.45
evaluate_offsetMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

get_dimMethod · 0.45
get_num_verticesMethod · 0.45
applyMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36