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

Method compute_intersection

tools/Boolean/Carve/CarveEngine.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void CarveEngine::compute_intersection() {
102 CarveMeshPtr mesh_1 = m_mesh_1;
103 CarveMeshPtr mesh_2 = m_mesh_2;
104 carve::csg::CSG csg;
105 csg.hooks.registerHook(
106 new carve::csg::CarveTriangulatorWithImprovement,
107 carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT);
108 CarveMeshPtr r(csg.compute(
109 mesh_1.get(), mesh_2.get(),
110 carve::csg::CSG::INTERSECTION));
111 extract_data(r, m_vertices, m_faces);
112}
113
114void CarveEngine::compute_difference() {
115 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