Blender  V3.3
Public Member Functions | Public Attributes | Friends | List of all members
blender::bke::calc_edges::OrderedEdge Struct Reference

Public Member Functions

 OrderedEdge (const int v1, const int v2)
 
 OrderedEdge (const uint v1, const uint v2)
 
uint64_t hash () const
 
uint64_t hash2 () const
 

Public Attributes

int v_low
 
int v_high
 

Friends

bool operator== (const OrderedEdge &e1, const OrderedEdge &e2)
 

Detailed Description

This is used to uniquely identify edges in a hash map.

Definition at line 22 of file mesh_calc_edges.cc.

Constructor & Destructor Documentation

◆ OrderedEdge() [1/2]

blender::bke::calc_edges::OrderedEdge::OrderedEdge ( const int  v1,
const int  v2 
)
inline

Definition at line 25 of file mesh_calc_edges.cc.

References v1, v2, v_high, and v_low.

◆ OrderedEdge() [2/2]

blender::bke::calc_edges::OrderedEdge::OrderedEdge ( const uint  v1,
const uint  v2 
)
inline

Definition at line 37 of file mesh_calc_edges.cc.

Member Function Documentation

◆ hash()

uint64_t blender::bke::calc_edges::OrderedEdge::hash ( ) const
inline

Definition at line 42 of file mesh_calc_edges.cc.

References v_high.

◆ hash2()

uint64_t blender::bke::calc_edges::OrderedEdge::hash2 ( ) const
inline

Return a hash value that is likely to be different in the low bits from the normal hash() function. This is necessary to avoid collisions in BKE_mesh_calc_edges.

Definition at line 49 of file mesh_calc_edges.cc.

References v_low.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const OrderedEdge e1,
const OrderedEdge e2 
)
friend

Definition at line 54 of file mesh_calc_edges.cc.

Member Data Documentation

◆ v_high

int blender::bke::calc_edges::OrderedEdge::v_high

Definition at line 23 of file mesh_calc_edges.cc.

Referenced by hash(), and OrderedEdge().

◆ v_low

int blender::bke::calc_edges::OrderedEdge::v_low

Definition at line 23 of file mesh_calc_edges.cc.

Referenced by hash2(), and OrderedEdge().


The documentation for this struct was generated from the following file: