mirror of https://github.com/CGAL/cgal
change initialized value to -1.
This commit is contained in:
parent
ff749f7fd6
commit
a40be70ff7
|
|
@ -1076,7 +1076,7 @@ Delaunay_triangulation_3<Gt,Tds,Default,Lds>::
|
|||
insert(const Point& p, Cell_handle start, bool *could_lock_zone)
|
||||
{
|
||||
Locate_type lt;
|
||||
int li = 0, lj = 0;
|
||||
int li = -1, lj = -1;
|
||||
|
||||
// Parallel
|
||||
if(could_lock_zone)
|
||||
|
|
|
|||
|
|
@ -3862,7 +3862,7 @@ Triangulation_3<GT,Tds,Lds>::
|
|||
insert(const Point& p, Cell_handle start)
|
||||
{
|
||||
Locate_type lt;
|
||||
int li = 0, lj = 0;
|
||||
int li = -1, lj = -1;
|
||||
Cell_handle c = locate(p, lt, li, lj, start);
|
||||
return insert(p, lt, c, li, lj);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -538,7 +538,7 @@ insert(const Point &p, Cell_handle start)
|
|||
{
|
||||
int vertex_level = random_level();
|
||||
Locate_type lt;
|
||||
int i = 0, j = 0;
|
||||
int i = -1, j = -1;
|
||||
// locate using hierarchy
|
||||
locs positions[maxlevel];
|
||||
locate(p, lt, i, j, positions, start);
|
||||
|
|
@ -578,7 +578,7 @@ insert_and_give_new_cells(const Point &p, OutputItCells fit, Cell_handle start)
|
|||
Locate_type lt;
|
||||
int i, j;
|
||||
// locate using hierarchy
|
||||
locs positions[maxlevel] = {0};
|
||||
locs positions[maxlevel] = {-1};
|
||||
locate(p, lt, i, j, positions, start);
|
||||
// insert at level 0
|
||||
Vertex_handle vertex = hierarchy[0]->insert_and_give_new_cells(p,
|
||||
|
|
|
|||
Loading…
Reference in New Issue