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

Method extract_boundary_loops

tools/Boolean/Clipper/ClipperEngine.cpp:158–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void ClipperEngine::extract_boundary_loops() {
159 Boundary::Ptr bd_extractor_1 =
160 Boundary::extract_surface_boundary_raw(m_vertices_1, m_faces_1);
161 Boundary::Ptr bd_extractor_2 =
162 Boundary::extract_surface_boundary_raw(m_vertices_2, m_faces_2);
163
164 MatrixIr boundary_1 = bd_extractor_1->get_boundaries();
165 MatrixIr boundary_2 = bd_extractor_2->get_boundaries();
166
167 Loops loops_1 = extract_loops(boundary_1);
168 Loops loops_2 = extract_loops(boundary_2);
169
170 for (const auto& loop : loops_1) {
171 m_loops_1.push_back(loop_to_path(m_vertices_1, loop));
172 }
173 for (const auto& loop : loops_2) {
174 m_loops_2.push_back(loop_to_path(m_vertices_2, loop));
175 }
176}
177
178void ClipperEngine::extract_result(const ClipperLib::Paths& paths) {
179 std::list<Vector2F> vertices;

Callers

nothing calls this directly

Calls 3

extract_loopsFunction · 0.85
loop_to_pathFunction · 0.85
get_boundariesMethod · 0.45

Tested by

no test coverage detected