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

Method with_rel_geometry_correction

tools/Wires/Inflator/InflatorEngine.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void InflatorEngine::with_rel_geometry_correction(const VectorF& correction) {
140 if (correction.size() != m_wire_network->get_dim()) {
141 std::stringstream err_msg;
142 err_msg << "Relative geometry offset dimension mismatch. Expect "
143 << m_wire_network->get_dim() << " but get "
144 << correction.size() << " instead.";
145 throw RuntimeError(err_msg.str());
146 }
147 m_rel_correction = correction;
148}
149
150void InflatorEngine::with_abs_geometry_correction(const VectorF& correction) {
151 if (correction.size() != m_wire_network->get_dim()) {

Callers 3

generate_phantom_meshMethod · 0.45
inflateMethod · 0.45

Calls 4

RuntimeErrorClass · 0.85
sizeMethod · 0.45
get_dimMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected