Read-only class used to bridge the content of a Point into a vertex.
More...
#include <btkTriangleMesh.h>
Read-only class used to bridge the content of a Point into a vertex.
The bridge is only effective when the method TriangleMesh::ConnectPoints is used an valided.
This class should be used only by using the method TriangleMesh::BeginVertex().
btk::TriangleMesh::Vertex::Vertex |
( |
| ) |
|
double btk::TriangleMesh::Vertex::GetCoordinateX |
( |
| ) |
const |
|
inline |
Returns the value of the X coordinate for the frame set.
- Warning
- This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
double btk::TriangleMesh::Vertex::GetCoordinateY |
( |
| ) |
const |
|
inline |
Returns the value of the Y coordinate for the frame set.
- Warning
- This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
double btk::TriangleMesh::Vertex::GetCoordinateZ |
( |
| ) |
const |
|
inline |
Returns the value of the Z coordinate for the frame set.
- Warning
- This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
int btk::TriangleMesh::Vertex::GetId |
( |
| ) |
const |
|
inline |
Returns the ID of the corresponding marker.
int btk::TriangleMesh::Vertex::GetRelativeId |
( |
| ) |
const |
|
inline |
Returns the relative ID of the corresponding marker. The value of the relative ID corresponds to the order of the given markers in the TriangleMesh constructor.
bool btk::TriangleMesh::Vertex::IsValid |
( |
| ) |
const |
|
inline |
Return true if the residual for the current frame is greater or equal to 0. Otherwise, returns false.