| 85 | } |
| 86 | |
| 87 | InflatorEngine::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 | |
| 108 | void InflatorEngine::with_shape_velocities() { |
| 109 | throw NotImplementedError( |
nothing calls this directly
no test coverage detected