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

Method create_isotropic_parametric

tools/Wires/Inflator/InflatorEngine.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74InflatorEngine::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
87InflatorEngine::InflatorEngine(WireNetwork::Ptr wire_network) :
88 m_wire_network(wire_network),

Callers 1

inflate_periodicMethod · 0.80

Calls 3

NotImplementedErrorClass · 0.85
set_parameterMethod · 0.80
get_dimMethod · 0.45

Tested by

no test coverage detected