| 1494 | } |
| 1495 | |
| 1496 | BOOL LASquadtree::has_more_cells() |
| 1497 | { |
| 1498 | if (current_cells == 0) |
| 1499 | { |
| 1500 | return FALSE; |
| 1501 | } |
| 1502 | if (next_cell_index >= ((my_cell_vector*)current_cells)->size()) |
| 1503 | { |
| 1504 | return FALSE; |
| 1505 | } |
| 1506 | if (adaptive) |
| 1507 | { |
| 1508 | current_cell = ((my_cell_vector*)current_cells)->at(next_cell_index); |
| 1509 | } |
| 1510 | else |
| 1511 | { |
| 1512 | current_cell = level_offset[levels] + ((my_cell_vector*)current_cells)->at(next_cell_index); |
| 1513 | } |
| 1514 | next_cell_index++; |
| 1515 | return TRUE; |
| 1516 | } |
| 1517 | |
| 1518 | BOOL LASquadtree::setup(F64 bb_min_x, F64 bb_max_x, F64 bb_min_y, F64 bb_max_y, F32 cell_size) |
| 1519 | { |