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

Method compute_intersection

tools/Boolean/BSP/BSPEngine.cpp:104–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void BSPEngine::compute_intersection() {
105 BSPPtr mesh1 = raw_to_bsp(m_vertices_1, m_faces_1);
106 BSPPtr mesh2 = raw_to_bsp(m_vertices_2, m_faces_2);
107 BSPPtr result = BSPlib::Bsp::Intersection(mesh1, mesh2);
108 bsp_to_raw(result, m_vertices, m_faces);
109}
110
111void BSPEngine::compute_difference() {
112 BSPPtr mesh1 = raw_to_bsp(m_vertices_1, m_faces_1);

Callers 15

cut_faceFunction · 0.45
clip_phantom_meshMethod · 0.45
booleanFunction · 0.45
__init__Method · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

raw_to_bspFunction · 0.85
bsp_to_rawFunction · 0.85

Tested by 13

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