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

Method initialize

tools/Wires/Inflator/SimpleInflator.cpp:86–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void SimpleInflator::initialize() {
87 check_thickness();
88 m_end_loops.clear();
89 m_vertex_list.clear();
90 m_face_list.clear();
91 m_face_source_list.clear();
92 m_num_vertex_accumulated = 0;
93 m_aspect_max = 1.0;
94
95 if (!m_wire_network->with_connectivity()) {
96 m_wire_network->compute_connectivity();
97 }
98 if (!m_wire_network->has_attribute("vertex_min_angle")) {
99 m_wire_network->add_attribute("vertex_min_angle");
100 }
101 if (!m_wire_network->has_attribute("edge_length")) {
102 m_wire_network->add_attribute("edge_length");
103 }
104}
105
106void SimpleInflator::compute_end_loop_offsets() {
107 const size_t num_vertices = m_wire_network->get_num_vertices();

Callers

nothing calls this directly

Calls 5

with_connectivityMethod · 0.80
clearMethod · 0.45
compute_connectivityMethod · 0.45
has_attributeMethod · 0.45
add_attributeMethod · 0.45

Tested by

no test coverage detected