Blender V4.3
blender::OrderedEdge Struct Reference

#include <BLI_ordered_edge.hh>

Public Member Functions

 OrderedEdge (const int v1, const int v2)
 
 OrderedEdge (const int2 edge)
 
 OrderedEdge (const uint v1, const uint v2)
 
uint64_t hash () const
 

Public Attributes

int v_low
 
int v_high
 

Friends

bool operator== (const OrderedEdge &e1, const OrderedEdge &e2)
 
bool operator!= (const OrderedEdge &e1, const OrderedEdge &e2)
 
bool operator< (const OrderedEdge &e1, const OrderedEdge &e2)
 
std::ostream & operator<< (std::ostream &stream, const OrderedEdge &e)
 

Detailed Description

A version of int2 used as a key for hash-maps, agnostic of the arbitrary order of the two vertices in a mesh edge.

Definition at line 16 of file BLI_ordered_edge.hh.

Constructor & Destructor Documentation

◆ OrderedEdge() [1/3]

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

Definition at line 20 of file BLI_ordered_edge.hh.

References v2, v_high, and v_low.

◆ OrderedEdge() [2/3]

blender::OrderedEdge::OrderedEdge ( const int2 edge)
inline

Definition at line 31 of file BLI_ordered_edge.hh.

◆ OrderedEdge() [3/3]

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

Definition at line 32 of file BLI_ordered_edge.hh.

Member Function Documentation

◆ hash()

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

Definition at line 34 of file BLI_ordered_edge.hh.

References v_high.

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 44 of file BLI_ordered_edge.hh.

◆ operator<

bool operator< ( const OrderedEdge & e1,
const OrderedEdge & e2 )
friend

Definition at line 49 of file BLI_ordered_edge.hh.

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const OrderedEdge & e )
friend

Definition at line 9 of file ordered_edge.cc.

◆ operator==

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

Definition at line 39 of file BLI_ordered_edge.hh.

Member Data Documentation

◆ v_high

int blender::OrderedEdge::v_high

◆ v_low

int blender::OrderedEdge::v_low

Definition at line 17 of file BLI_ordered_edge.hh.

Referenced by OrderedEdge(), and blender::geometry::update_unselected_edges().


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