Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Combinatorial map assertion error: is_whole_orbit_unmarked()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Combinatorial map assertion error: is_whole_orbit_unmarked()


Chronological Thread 
  • From: Pranav <>
  • To:
  • Subject: Re: [cgal-discuss] Combinatorial map assertion error: is_whole_orbit_unmarked()
  • Date: Fri, 12 Jun 2015 01:16:06 -0700 (PDT)

The problem is solved. I was inserting the dart handles to the 3-cells to be
removed from LCC inside a std::vector and then removing them(calling
remove_cell) in another loop, as you suggested, but I forgot to clear the
vector after each loop. Once I added /vector.clear()/ before every call to
populate the vector, code assertion violation error disappeared. Following
is the pseudocode,

*Erroneous code:*

for (iterate N times)
{
for (iterate over linear cell complex, lcc)
if (some condition)
vector.push_back(dart_handle_of_cells_to_be_removed);

for (iterate over vector using iterator /iter/)
remove_cell<LCC, 3>(lcc, */iter/);
}

*Fixed code:*

for (iterate N times)
{
/ vector.clear();/ <----- removes references to already deleted cells
from previous iteration
for (iterate over linear cell complex, lcc)
if (some condition)
vector.push_back(dart_handle_of_cells_to_be_removed);

for (iterate over vector using iterator /iter/)
remove_cell<LCC, 3>(lcc, */iter/);
}



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Combinatorial-map-assertion-error-is-whole-orbit-unmarked-tp4660851p4660916.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page