MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UnorientedTriangle Struct Reference

#include <MRUnorientedTriangle.h>

Public Member Functions

 UnorientedTriangle (const ThreeVertIds &inVs, bool *outFlipped=nullptr)
 
ThreeVertIds getFlipped () const
 returns this triangle with the opposite orientation
 
 operator ThreeVertIds & ()
 id #0 remains the lowest
 
 operator const ThreeVertIds & () const
 
VertId & operator[] (std::size_t i)
 
const VertId & operator[] (std::size_t i) const
 

Public Attributes

ThreeVertIds verts {}
 

Friends

bool operator== (const UnorientedTriangle &a, const UnorientedTriangle &b)=default
 

Detailed Description

describes a triangle as three vertex IDs sorted in a way to quickly find same triangles irrespective of vertex order (clockwise or counterclockwise)


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