MCPcopy Create free account
hub / github.com/LASzip/LASzip / intersect_tile

Method intersect_tile

src/lasquadtree.cpp:830–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830U32 LASquadtree::intersect_tile(const F32 ll_x, const F32 ll_y, const F32 size, U32 level)
831{
832 if (current_cells == 0)
833 {
834 current_cells = (void*) new my_cell_vector;
835 }
836 else
837 {
838 ((my_cell_vector*)current_cells)->clear();
839 }
840
841 volatile F32 ur_x = ll_x + size;
842 volatile F32 ur_y = ll_y + size;
843
844 if (ur_x <= min_x || !(ll_x <= max_x) || ur_y <= min_y || !(ll_y <= max_y))
845 {
846 return 0;
847 }
848
849 if (adaptive)
850 {
851 intersect_tile_with_cells_adaptive(ll_x, ll_y, ur_x, ur_y, min_x, max_x, min_y, max_y, 0, 0);
852 }
853 else
854 {
855 intersect_tile_with_cells(ll_x, ll_y, ur_x, ur_y, min_x, max_x, min_y, max_y, level, 0);
856 }
857
858 return (U32)(((my_cell_vector*)current_cells)->size());
859}
860
861U32 LASquadtree::intersect_tile(const F32 ll_x, const F32 ll_y, const F32 size)
862{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected