Skip to content

Commit

Permalink
Begin implementing adjacent method
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 13, 2020
1 parent c5591da commit 474ca79
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Octree/include/CGAL/Octree/Node.h
Expand Up @@ -73,6 +73,7 @@ class Node {

/// @}


private:

Point_range m_points;
Expand Down Expand Up @@ -335,6 +336,19 @@ class Node {
return !operator==(rhs);
}

Node<Point_index> *adjacent(std::bitset<3> direction) {

// Nodes only have up to 6 different adjacent nodes (since cubes have 6 sides)
assert(direction.to_ulong() < 6);


// Direction: LEFT RIGHT DOWN UP BACK FRONT
// direction: 000 001 010 011 100 101
bool axis = direction[0]; // false true false true false true


}

/// @}
};

Expand Down

0 comments on commit 474ca79

Please sign in to comment.