Class 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.
Parameters:
v1First endpoint index.v2Second endpoint index.
function getV1
First endpoint index.
function getV2
Second endpoint index.
function operator<
Comparison operator for sorting / deduplication.
Parameters:
otherAnother edge.
Returns:
true if this edge is ordered before other.
Public Static Functions Documentation
function getUniquesEdges
Extract all unique undirected edges from a mesh.
Parameters:
meshThe input mesh.
Returns:
A vector of unique Edge objects.
The documentation for this class was generated from the following file include/structure/Edge.h