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

Method create_parametric

tools/Wires/Inflator/InflatorEngine.cpp:54–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54InflatorEngine::Ptr InflatorEngine::create_parametric(WireNetwork::Ptr network,
55 ParameterManager::Ptr manager) {
56 const size_t dim = network->get_dim();
57 if (dim == 2) {
58 std::shared_ptr<PeriodicInflator2D> ptr =
59 std::make_shared<PeriodicInflator2D>(network);
60 ptr->set_parameter(manager);
61 return ptr;
62 } else if (dim == 3) {
63 std::shared_ptr<PeriodicInflator3D> ptr =
64 std::make_shared<PeriodicInflator3D>(network);
65 ptr->set_parameter(manager);
66 return ptr;
67 } else {
68 std::stringstream err_msg;
69 err_msg << "Unsupported dim: " << dim;
70 throw NotImplementedError(err_msg.str());
71 }
72}
73
74InflatorEngine::Ptr InflatorEngine::create_isotropic_parametric(
75 WireNetwork::Ptr network, ParameterManager::Ptr manager) {

Callers 1

inflate_periodicMethod · 0.80

Calls 4

NotImplementedErrorClass · 0.85
set_parameterMethod · 0.80
get_dimMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected