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

Method compute_symmetric_difference

tools/Boolean/Carve/CarveEngine.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void CarveEngine::compute_symmetric_difference() {
128 CarveMeshPtr mesh_1 = m_mesh_1;
129 CarveMeshPtr mesh_2 = m_mesh_2;
130 carve::csg::CSG csg;
131 csg.hooks.registerHook(
132 new carve::csg::CarveTriangulatorWithImprovement,
133 carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT);
134 CarveMeshPtr r(csg.compute(
135 mesh_1.get(), mesh_2.get(),
136 carve::csg::CSG::SYMMETRIC_DIFFERENCE));
137 extract_data(r, m_vertices, m_faces);
138}
139
140void CarveEngine::convert_mesh_to_native_format(MeshSelection s) {
141 switch(s) {

Callers

nothing calls this directly

Calls 3

extract_dataFunction · 0.85
computeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected