bugfix in Linear_cell_complex export

[skip ci]
This commit is contained in:
Sven Oesau 2023-01-23 12:20:54 +01:00
parent db010042fd
commit 7ffe17d972
3 changed files with 8 additions and 13 deletions

View File

@ -109,6 +109,11 @@ public:
merge_facets_connected_components();
create_volumes();
if (m_parameters.debug) {
for (const auto& v : m_data.volumes())
dump_volume(m_data, v.pfaces, "volumes/" + std::to_string(v.index), true, v.index);
}
CGAL_assertion(m_data.check_faces());
}

View File

@ -145,20 +145,10 @@ public:
if (m_parameters.verbose) std::cout << "done" << std::endl;
if (m_parameters.debug) {
//KSR_3::dump(m_data, "intersected");
// KSR_3::dump_segmented_edges(m_data, "intersected");
KSR_3::dump(m_data, "intersected");
KSR_3::dump_segmented_edges(m_data, "intersected");
}
// for (std::size_t i = 6; i < m_data.number_of_support_planes(); ++i) {
// const auto& sp = m_data.support_plane(i);
// std::cout << "plane index: " << i << std::endl;
// std::cout << "plane: " <<
// sp.plane().a() << ", " <<
// sp.plane().b() << ", " <<
// sp.plane().c() << ", " <<
// sp.plane().d() << std::endl;
// }
CGAL_assertion(m_data.check_bbox());
//m_data.set_limit_lines();
m_data.precompute_iedge_data();

View File

@ -670,9 +670,9 @@ public:
CGAL_assertion(m_data.has_ivertex(*it));
IVertex ivertex = m_data.ivertex(*it);
ib.add_vertex_to_facet(static_cast<std::size_t>(remap[ivertex]));
it--;
if (it == vertex_range.begin())
break;
it--;
} while (true);
}
ib.end_facet();