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

Method compute_union

tools/Boolean/Carve/CarveEngine.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86using namespace CarveEngineHelper;
87
88void CarveEngine::compute_union() {
89 CarveMeshPtr mesh_1 = m_mesh_1;
90 CarveMeshPtr mesh_2 = m_mesh_2;
91 carve::csg::CSG csg;
92 csg.hooks.registerHook(
93 new carve::csg::CarveTriangulatorWithImprovement,
94 carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT);
95 CarveMeshPtr r(csg.compute(
96 mesh_1.get(), mesh_2.get(),
97 carve::csg::CSG::UNION));
98 extract_data(r, m_vertices, m_faces);
99}
100
101void CarveEngine::compute_intersection() {
102 CarveMeshPtr mesh_1 = m_mesh_1;

Callers

nothing calls this directly

Calls 3

extract_dataFunction · 0.85
computeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected