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

Method compute_symmetric_difference

tools/Boolean/BSP/BSPEngine.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void BSPEngine::compute_symmetric_difference() {
119 BSPPtr mesh1 = raw_to_bsp(m_vertices_1, m_faces_1);
120 BSPPtr mesh2 = raw_to_bsp(m_vertices_2, m_faces_2);
121 BSPPtr left = BSPlib::Bsp::Difference(mesh1, mesh2);
122 BSPPtr right = BSPlib::Bsp::Difference(mesh1, mesh2);
123 BSPPtr result = BSPlib::Bsp::Union(left, right);
124 bsp_to_raw(result, m_vertices, m_faces);
125}
126
127#endif

Callers 7

booleanFunction · 0.45
__init__Method · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

raw_to_bspFunction · 0.85
UnionClass · 0.85
bsp_to_rawFunction · 0.85

Tested by 5

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36