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

Method InflatorEngine

tools/Wires/Inflator/InflatorEngine.cpp:87–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87InflatorEngine::InflatorEngine(WireNetwork::Ptr wire_network) :
88 m_wire_network(wire_network),
89 m_thickness_type(PER_VERTEX),
90 m_subdiv_order(0) {
91 const size_t dim = m_wire_network->get_dim();
92 if (dim == 3) {
93 m_profile = WireProfile::create("square");
94 } else if (dim == 2) {
95 m_profile = WireProfile::create_2D();
96 } else {
97 std::stringstream err_msg;
98 err_msg << "Unsupported dim: " << dim;
99 throw NotImplementedError(err_msg.str());
100 }
101 m_rel_correction = VectorF::Zero(dim);
102 m_abs_correction = VectorF::Zero(dim);
103 m_correction_cap = 0.3;
104 m_spread_const = 0.0;
105 m_self_intersection_is_fatal = false;
106 }
107
108void InflatorEngine::with_shape_velocities() {
109 throw NotImplementedError(

Callers

nothing calls this directly

Calls 3

NotImplementedErrorClass · 0.85
get_dimMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected