Enmesh
Loading...
Searching...
No Matches
Enmesh::Quad Struct Reference

A struct representing a quad in the mesh. More...

#include <quad.h>

Public Member Functions

bool containsEdge (size_t v1, size_t v2) const
 Check if the circum circle of the quad contains a specific edge defined by two vertex indices.
bool operator== (const Quad &other) const
 Overload the == operator to compare two quads based on their vertex indices.

Public Attributes

std::array< size_t, 4 > v
 Indices of the vertices that form the quad.

Static Public Attributes

static constexpr size_t elementType = 3
 Gmsh element type for quads.
static constexpr size_t numVertices = 4
 Number of vertices in a quad.

Detailed Description

A struct representing a quad in the mesh.

Member Function Documentation

◆ containsEdge()

bool Enmesh::Quad::containsEdge ( size_t v1,
size_t v2 ) const

Check if the circum circle of the quad contains a specific edge defined by two vertex indices.

Parameters
v1index of the first vertex of the edge
v2index of the second vertex of the edge

◆ operator==()

bool Enmesh::Quad::operator== ( const Quad & other) const
inline

Overload the == operator to compare two quads based on their vertex indices.

Parameters
otherThe quad to compare with
Returns
true if the quads have the same vertex indices (regardless of order), false otherwise

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