21 bool * outFlipped =
nullptr )
25 auto checkSwap = [
this, &flipped](
int i,
int j )
39 *outFlipped = flipped;
60struct hash<
MR::UnorientedTriangle>
66 const auto a = std::uint32_t( triplet.
verts[0] );
67 const auto b = std::uint32_t( triplet.
verts[1] );
68 const auto c = std::uint32_t( triplet.
verts[2] );
69 if constexpr (
sizeof( size_t ) >= 8 )
72 return size_t( a ^ ( std::uint64_t( b ) << 21 ) ^ ( std::uint64_t( c ) << 42 ) );
77 return size_t( 0xea87bb09u * a + 0xd8306b31u * b + c );
const VertId & operator[](std::size_t i) const
Definition MRUnorientedTriangle.h:49
VertId & operator[](std::size_t i)
Definition MRUnorientedTriangle.h:48
friend bool operator==(const UnorientedTriangle &a, const UnorientedTriangle &b)=default
ThreeVertIds verts
Definition MRUnorientedTriangle.h:18
ThreeVertIds getFlipped() const
returns this triangle with the opposite orientation
Definition MRUnorientedTriangle.h:43
UnorientedTriangle(const ThreeVertIds &inVs, bool *outFlipped=nullptr)
Definition MRUnorientedTriangle.h:20
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRId.h:203
Definition MRUnorientedTriangle.h:17