MCPcopy Create free account
hub / github.com/LAStools/LAStools / get_children

Method get_children

LASlib/src/lascopc.cpp:48–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46EPTkey::EPTkey() : EPTkey(-1, -1, -1, -1) {}
47
48std::array<EPTkey, 8> EPTkey::get_children() const
49{
50 std::array<EPTkey, 8> children;
51 for (U8 direction = 0 ; direction < 8 ; direction++)
52 {
53 EPTkey key(*this);
54
55 key.d++;
56 key.x *= 2;
57 key.y *= 2;
58 key.z *= 2;
59
60 if (direction & (((U8)1) << 0)) key.x++;
61 if (direction & (((U8)1) << 1)) key.y++;
62 if (direction & (((U8)1) << 2)) key.z++;
63
64 children[direction] = key;
65 }
66
67 return children;
68}
69
70EPTkey EPTkey::get_parent() const
71{

Callers 2

mainFunction · 0.80
query_intervalsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected