| 72 | } |
| 73 | |
| 74 | InflatorEngine::Ptr InflatorEngine::create_isotropic_parametric( |
| 75 | WireNetwork::Ptr network, ParameterManager::Ptr manager) { |
| 76 | const size_t dim = network->get_dim(); |
| 77 | if (dim == 3) { |
| 78 | auto ptr = std::make_shared<IsotropicPeriodicInflator>(network); |
| 79 | ptr->set_parameter(manager); |
| 80 | return ptr; |
| 81 | } else { |
| 82 | throw NotImplementedError( |
| 83 | "Isotropic periodic inflator only support 3D mesh"); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | InflatorEngine::InflatorEngine(WireNetwork::Ptr wire_network) : |
| 88 | m_wire_network(wire_network), |
no test coverage detected