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

Method with_abs_geometry_correction

tools/Wires/Inflator/InflatorEngine.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void InflatorEngine::with_abs_geometry_correction(const VectorF& correction) {
151 if (correction.size() != m_wire_network->get_dim()) {
152 std::stringstream err_msg;
153 err_msg << "Absolute geometry offset dimension mismatch. Expect "
154 << m_wire_network->get_dim() << " but get "
155 << correction.size() << " instead.";
156 throw RuntimeError(err_msg.str());
157 }
158 m_abs_correction = correction;
159}
160
161void InflatorEngine::clean_up() {
162 remove_isolated_vertices();

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