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