mirror of https://github.com/CGAL/cgal
Forgot to fix Triangulation accordingly (see previous commit)
(cherry picked from commit 35555fd3f9)
This commit is contained in:
parent
5531f6f169
commit
2c1f647107
|
|
@ -756,7 +756,7 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
void display_all_full_cells__debugging()
|
||||
void display_all_full_cells__debugging() const
|
||||
{
|
||||
std::cerr << "ALL FULL CELLS:" << std::endl;
|
||||
for (Full_cell_const_iterator cit = full_cells_begin() ;
|
||||
|
|
@ -971,6 +971,36 @@ Triangulation<TT, TDS>
|
|||
CGAL_assertion( COPLANAR != o );
|
||||
if( NEGATIVE == o )
|
||||
reorient_full_cells();
|
||||
|
||||
|
||||
// We just inserted the second finite point and the right infinite
|
||||
// cell is like : (inf_v, v), but we want it to be (v, inf_v) to be
|
||||
// consistent with the rest of the cells
|
||||
if (current_dimension() == 1)
|
||||
{
|
||||
// Is "inf_v_cell" the right infinite cell?
|
||||
// Then inf_v_index should be 1
|
||||
if (inf_v_cell->neighbor(inf_v_index)->index(inf_v_cell) == 0
|
||||
&& inf_v_index == 0)
|
||||
{
|
||||
inf_v_cell->swap_vertices(
|
||||
current_dimension() - 1, current_dimension());
|
||||
}
|
||||
// Otherwise, let's find the right infinite cell
|
||||
else
|
||||
{
|
||||
inf_v_cell = inf_v_cell->neighbor((inf_v_index + 1) % 2);
|
||||
inf_v_index = inf_v_cell->index(infinite_vertex());
|
||||
// Is "inf_v_cell" the right infinite cell?
|
||||
// Then inf_v_index should be 1
|
||||
if (inf_v_cell->neighbor(inf_v_index)->index(inf_v_cell) == 0
|
||||
&& inf_v_index == 0)
|
||||
{
|
||||
inf_v_cell->swap_vertices(
|
||||
current_dimension() - 1, current_dimension());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,10 +114,11 @@ int main(int argc, char **argv)
|
|||
int N = 1000;
|
||||
if( argc > 1 )
|
||||
N = atoi(argv[1]);
|
||||
//go<5>(N);
|
||||
//go<3>(N);
|
||||
go<2>(N);
|
||||
//go<1>(N);
|
||||
//go<5>(N);
|
||||
go<4>(N);
|
||||
go<3>(N);
|
||||
go<2>(N);
|
||||
go<1>(N);
|
||||
|
||||
cerr << std::endl;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue