RobWorkProject  23.9.11-
Public Member Functions | Friends | List of all members
ReferencedEdge Class Reference

Public Member Functions

 ReferencedEdge (TriMeshData::Ptr ref, uint32_t vertice1, uint32_t vertice2)
 
ReferencedVertice operator[] (size_t i) const
 get the referencedvertexes belonging to the edge. More...
 
uint32_t idx (size_t i) const
 get the mesh index of the vertexes belonging to this edge More...
 
uint32_t & idx (size_t i)
 get the mesh index of the vertexes belonging to this edge More...
 
bool has (const ReferencedVertice &v) const
 check if the vertice is part of the edge More...
 
bool has (const ReferencedVertice &v1, const ReferencedVertice &v2) const
 check if the vertices is part of the edge More...
 

Friends

class ReferencedTriangle
 

Member Function Documentation

◆ has() [1/2]

bool has ( const ReferencedVertice v) const

check if the vertice is part of the edge

Parameters
v
Returns
true if vertice is part of the edge
false if vertice is not part of the edge or the mesh

◆ has() [2/2]

bool has ( const ReferencedVertice v1,
const ReferencedVertice v2 
) const

check if the vertices is part of the edge

Parameters
v1
v2
Returns
true if both vertices is part of the edge
false if both vertices is not part of the edge or the mesh

◆ idx() [1/2]

uint32_t& idx ( size_t  i)

get the mesh index of the vertexes belonging to this edge

Parameters
i[in] index of the wanted mesh index
Returns
uint32_t&

◆ idx() [2/2]

uint32_t idx ( size_t  i) const

get the mesh index of the vertexes belonging to this edge

Parameters
i[in] index of the wanted mesh index
Returns
uint32_t&

◆ operator[]()

ReferencedVertice operator[] ( size_t  i) const

get the referencedvertexes belonging to the edge.

Parameters
i[in] index of the wanted vertex
Returns
ReferencedVertice

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