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

Read-only class used to represent a face as a set of three vertices. More...

#include <btkTriangleMesh.h>

Public Member Functions

 Face ()
 
const VertexGetVertex1 () const
 
const VertexGetVertex2 () const
 
const VertexGetVertex3 () const
 
bool IsValid () const
 

Friends

class TriangleMesh
 

Detailed Description

Read-only class used to represent a face as a set of three vertices.

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

Constructor & Destructor Documentation

btk::TriangleMesh::Face::Face ( )
inline

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

Member Function Documentation

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

Returns the first vertex defining the face.

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

Returns the second vertex defining the face.

const TriangleMesh::Vertex * btk::TriangleMesh::Face::GetVertex3 ( ) const
inline

Returns the third vertex defining the face.

bool btk::TriangleMesh::Face::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()).