50 #ifndef OPENMESH_VDPROGMESH_VHIERARCHYNODEINDEX_HH
51 #define OPENMESH_VDPROGMESH_VHIERARCHYNODEINDEX_HH
91 unsigned int _node_id,
92 unsigned short _tree_id_bits)
94 assert(_tree_id < ((
unsigned int) 0x00000001 << _tree_id_bits));
95 assert(_node_id < ((
unsigned int) 0x00000001 << (32 - _tree_id_bits)));
96 value_ = (_tree_id << (32 - _tree_id_bits)) | _node_id;
99 bool is_valid(
unsigned short _tree_id_bits)
const
100 {
return node_id(_tree_id_bits) != 0 ? true :
false; }
102 unsigned int tree_id(
unsigned short _tree_id_bits)
const
103 {
return value_ >> (32 - _tree_id_bits); }
105 unsigned int node_id(
unsigned short _tree_id_bits)
const
106 {
return value_ & ((
unsigned int) 0xFFFFFFFF >> _tree_id_bits); }
109 {
return (value_ < other.value_) ? true :
false; }
111 unsigned int value()
const
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
std::vector< VHierarchyNodeIndex > VHierarchyNodeIndexContainer
Container for vertex hierarchy node indices.
Definition: VHierarchyNodeIndex.hh:117
Index of vertex hierarchy node.
Definition: VHierarchyNodeIndex.hh:74