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

Method initialize_if_needed

tools/Boolean/Clipper/ClipperEngine.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void ClipperEngine::initialize_if_needed() {
149 m_vertices = MatrixFr::Zero(0,2);
150 m_faces = MatrixIr::Zero(0,3);
151 if (m_vertices_1.cols() != 2) { m_vertices_1 = m_vertices_1.leftCols(2); }
152 if (m_vertices_2.cols() != 2) { m_vertices_2 = m_vertices_2.leftCols(2); }
153 m_loops_1.clear();
154 m_loops_2.clear();
155 extract_boundary_loops();
156}
157
158void ClipperEngine::extract_boundary_loops() {
159 Boundary::Ptr bd_extractor_1 =

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected