BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Member Functions | Friends
btk::TriangleMesh::Edge Class Reference

Read-only class used to represent an edge as a set of two vertices. More...

#include <btkTriangleMesh.h>

Public Member Functions

 Edge ()
 
const VertexGetVertex1 () const
 
const VertexGetVertex2 () const
 
bool IsValid () const
 

Friends

class TriangleMesh
 

Detailed Description

Read-only class used to represent an edge as a set of two vertices.

This class should be used only by using the method TriangleMesh::BeginEdge().

Constructor & Destructor Documentation

btk::TriangleMesh::Edge::Edge ( )
inline

Constructor. By default, the pointers to the vertices are NULL.

Member Function Documentation

const TriangleMesh::Vertex * btk::TriangleMesh::Edge::GetVertex1 ( ) const
inline

Returns the first vertex defining the edge.

const TriangleMesh::Vertex * btk::TriangleMesh::Edge::GetVertex2 ( ) const
inline

Returns the second vertex defining the edge.

bool btk::TriangleMesh::Edge::IsValid ( ) const
inline

Returns true if the vertices defining the edge are valids.

Warning
This method is not thread-safe and must be used only after the connection of a set o points (see method TriangleMesh::ConnectPoints()).