33 GocadNode(
double const*
const coords, std::size_t
id,
34 std::size_t layer_transition_idx)
46 void setFaceSet(std::size_t face_set_number, std::size_t face_indicator)
49 switch (face_indicator)
65 "GocadNode::setFaceSet(): unknown face indicator {:d}.",
92 auto const it = std::find_if(
94 [&](
auto const fi) { return fi.first == face_set_number; });
98 "GocadNode {:d}: Could not found face indicator for face set "
100 getID(), face_set_number);
125 std::array<std::size_t, 3>
const& grid_coords,
126 std::bitset<8>
const& affected_cells,
127 std::size_t layer_transition_idx)
128 :
GocadNode(coords, id, layer_transition_idx),
Definition of the Node class.
~GocadNode() override=default
GocadNode(GocadNode &&src)=default
void setFaceSet(std::size_t face_set_number, std::size_t face_indicator)
FaceDirection getFaceDirection(std::size_t const face_set_number) const
GocadNode & operator=(GocadNode const &rhs)=default
std::size_t getLayerTransitionIndex() const
GocadNode & operator=(GocadNode &&rhs)=default
GocadNode(double const *const coords, std::size_t id, std::size_t layer_transition_idx)
bool isMemberOfAnyFaceSet() const
bool isMemberOfFaceSet(std::size_t face_set_number) const
std::bitset< 128 > _face_set_membership
std::bitset< 128 > const & getFaceSetMembership() const
void resetID(std::size_t id)
std::vector< std::pair< std::size_t, FaceDirection > > _face_directions
std::size_t _layer_transition_idx
GocadNode(GocadNode const &src)=default
std::array< std::size_t, 3 > _grid_coords
void transmitFaceDirections(GocadNode const &gocad_node)
std::array< std::size_t, 3 > const & getGridCoords() const
std::bitset< 8 > const & getAffectedCells() const
std::bitset< 8 > const _affected_cells
GocadSplitNode(double const *const coords, std::size_t id, std::array< std::size_t, 3 > const &grid_coords, std::bitset< 8 > const &affected_cells, std::size_t layer_transition_idx)
std::size_t getID() const
void setID(std::size_t id)
Sets the ID of a node to the given value.
Node(const double coords[3], std::size_t id=std::numeric_limits< std::size_t >::max())
Constructor using a coordinate array.
bool operator<=(GocadNode const &n0, GocadNode const &n1)