Defines a vertex in Mesh.
More...
#include <Vertex.hpp>
|
| | Vertex () |
| | Construct a new Vertex object with members declared not initialized.
|
| |
| | Vertex (const int index, const double x, const double y, const double z) |
| | Constructs a new Vertex object with x,y,z coordinates.
|
| |
| | Vertex (const int index, const Matrix &coord) |
| | Constructs a new Vertex object with Matrix of size (3,1)
|
| |
| void | update_coord_with_prev_coord () |
| | Update the current vertex coordinate with the previous coordinate by copying the values of the previous coordinate matrix to the current coordinate.
|
| |
| void | approximate_unit_normal_vector (std::vector< Face > &faces) |
| | Approximate the normal vector of the current vertex by averaging the normal vector of all surrounding faces. The output will be store in member variable normVector.
|
| |
|
| int | index |
| | index number of the vertex
|
| |
| Matrix | coord |
| | coordinate of the vertex
|
| |
| Matrix | coordPrev |
| | coordinate of previous step
|
| |
| Matrix | coordRef |
| | reference coordinate
|
| |
| std::vector< int > | adjacentVertices |
| | index of adjacent vertices
|
| |
| std::vector< int > | adjacentFaces |
| | inde of adjacent faces
|
| |
| Matrix | normVector |
| | normal vector to the corresponding point on limit surface
|
| |
| int | layerIndex = 0 |
| | used in multi-layer (a.k.a. leaflet) model; 0 for middle layer; +1 for upper layer
|
| |
| VertexType | type = VertexType::Real |
| | used in boundary condition
|
| |
| int | reflectiveVertexIndex = -1 |
| | reflective vertex used in periodic boundary condition
|
| |
| bool | isBoundary = false |
| |
| Force | force |
| | force exerted on the vertex
|
| |
| Force | forcePrev |
| | force exerted on the vertex from the previous iteration
|
| |
| bool | isGhost = false |
| | “Ghost vertices” are defined as points on the boundary of the triangular mesh that only serve to provide reference when calculating limit surface on the boundary, as calculating position of a point on the limit surface require the coordinates of 12 neighboring vertices (if regular). However, the “ghost vertices” themselves do not correspond to real points on the surface.
|
| |
Defines a vertex in Mesh.
◆ Vertex() [1/3]
Construct a new Vertex object with members declared not initialized.
◆ Vertex() [2/3]
| Vertex::Vertex |
( |
const int |
index, |
|
|
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z |
|
) |
| |
Constructs a new Vertex object with x,y,z coordinates.
- Parameters
-
| index | The index of the vertex. |
| x | The x coordinate of the vertex. |
| y | The y coordinate of the vertex. |
| z | The z coordinate of the vertex. |
◆ Vertex() [3/3]
| Vertex::Vertex |
( |
const int |
index, |
|
|
const Matrix & |
coord |
|
) |
| |
Constructs a new Vertex object with Matrix of size (3,1)
- Parameters
-
| index | The index of the vertex |
| coord | Matrix(3,1) coordinates of the vertex |
◆ approximate_unit_normal_vector()
| void Vertex::approximate_unit_normal_vector |
( |
std::vector< Face > & |
faces | ) |
|
Approximate the normal vector of the current vertex by averaging the normal vector of all surrounding faces. The output will be store in member variable normVector.
◆ update_coord_with_prev_coord()
| void Vertex::update_coord_with_prev_coord |
( |
| ) |
|
Update the current vertex coordinate with the previous coordinate by copying the values of the previous coordinate matrix to the current coordinate.
◆ adjacentFaces
| std::vector<int> Vertex::adjacentFaces |
◆ adjacentVertices
| std::vector<int> Vertex::adjacentVertices |
index of adjacent vertices
◆ coord
◆ coordPrev
coordinate of previous step
◆ coordRef
◆ force
force exerted on the vertex
◆ forcePrev
force exerted on the vertex from the previous iteration
◆ index
index number of the vertex
◆ isBoundary
| bool Vertex::isBoundary = false |
- Deprecated:
- point on boundary of the membrane; determined by boundary condition
◆ isGhost
| bool Vertex::isGhost = false |
“Ghost vertices” are defined as points on the boundary of the triangular mesh that only serve to provide reference when calculating limit surface on the boundary, as calculating position of a point on the limit surface require the coordinates of 12 neighboring vertices (if regular). However, the “ghost vertices” themselves do not correspond to real points on the surface.
◆ layerIndex
| int Vertex::layerIndex = 0 |
used in multi-layer (a.k.a. leaflet) model; 0 for middle layer; +1 for upper layer
◆ normVector
normal vector to the corresponding point on limit surface
◆ reflectiveVertexIndex
| int Vertex::reflectiveVertexIndex = -1 |
reflective vertex used in periodic boundary condition
◆ type
used in boundary condition
The documentation for this class was generated from the following file: