Skip to content

Class Argos::Edge

ClassList > Argos > Edge

Represents an undirected edge between two mesh vertices. More...

  • #include <Edge.h>

Public Functions

Type Name
Edge (int v1, int v2)
Construct an edge between two vertex indices.
int getV1 () const
First endpoint index.
int getV2 () const
Second endpoint index.
bool operator< (const Edge & other) const
Comparison operator for sorting / deduplication.

Public Static Functions

Type Name
std::vector< Edge > getUniquesEdges (const Mesh & mesh)
Extract all unique undirected edges from a mesh.

Detailed Description

Used for extracting unique edges from a Mesh and for comparison / deduplication.

Public Functions Documentation

function Edge

Construct an edge between two vertex indices.

Argos::Edge::Edge (
    int v1,
    int v2
) 

Parameters:

  • v1 First endpoint index.
  • v2 Second endpoint index.

function getV1

First endpoint index.

int Argos::Edge::getV1 () const


function getV2

Second endpoint index.

int Argos::Edge::getV2 () const


function operator<

Comparison operator for sorting / deduplication.

bool Argos::Edge::operator< (
    const  Edge & other
) const

Parameters:

  • other Another edge.

Returns:

true if this edge is ordered before other.


Public Static Functions Documentation

function getUniquesEdges

Extract all unique undirected edges from a mesh.

static std::vector< Edge > Argos::Edge::getUniquesEdges (
    const  Mesh & mesh
) 

Parameters:

  • mesh The input mesh.

Returns:

A vector of unique Edge objects.



The documentation for this class was generated from the following file include/structure/Edge.h