Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Vertex Struct Reference

Represents a vertex in the mesh. More...

Public Member Functions

 Vertex (int id, double x, double y, double z)
 Vertex (double pX, double pY, double pZ, double pScalar, double factor)
bool operator== (const Vertex &v)
 Vertex ()
 Vertex (int id, double x, double y)
void init (int id, double x, double y)

Public Attributes

int id
double x
double y
double z
double X
double Y
double Z
int x
int y
int z
double scalar
int m_id
double m_x
double m_y

Detailed Description

Represents a vertex in the mesh.

Each vertex has a 3-component coordinate and a scalar value associated with it. The factor provides a mechanism to specify precision of the coordinate comparison. Although coordinates are provided as floating-point numbers, they are stored as integers. The integer value is computed as floor (x * factor) Therefore a factor of 100 would ensure a precision of 0.01 in the comparison.

Definition at line 12 of file EnsiteToXml.cpp.

Constructor & Destructor Documentation

Vertex::Vertex ( int  id,
double  x,
double  y,
double  z 
)
inline

Definition at line 14 of file EnsiteToXml.cpp.

:
id(id),
x(x),
y(y),
z(z)
{};
Vertex::Vertex ( double  pX,
double  pY,
double  pZ,
double  pScalar,
double  factor 
)
inline

Definition at line 32 of file VtkToFld.cpp.

: x((int)floor(pX*factor)),
y((int)floor(pY*factor)),
z((int)floor(pZ*factor)),
scalar(pScalar) {}
Vertex::Vertex ( )
inline

Definition at line 47 of file VariableValence2DMeshGenerator.cpp.

{}
Vertex::Vertex ( int  id,
double  x,
double  y 
)
inline

Definition at line 48 of file VariableValence2DMeshGenerator.cpp.

:
m_id(id),
m_x(x),
m_y(y)
{}

Member Function Documentation

void Vertex::init ( int  id,
double  x,
double  y 
)
inline

Definition at line 53 of file VariableValence2DMeshGenerator.cpp.

{
m_id = id;
m_x = x;
m_y = y;
}
bool Vertex::operator== ( const Vertex v)
inline

Definition at line 43 of file VtkToFld.cpp.

References x, y, and z.

{
return (x == v.x && y == v.y && z == v.z);
}

Member Data Documentation

int Vertex::id

Definition at line 19 of file EnsiteToXml.cpp.

int Vertex::m_id

Definition at line 60 of file VariableValence2DMeshGenerator.cpp.

double Vertex::m_x

Definition at line 61 of file VariableValence2DMeshGenerator.cpp.

double Vertex::m_y

Definition at line 62 of file VariableValence2DMeshGenerator.cpp.

double Vertex::scalar

Definition at line 41 of file VtkToFld.cpp.

double Vertex::x

Definition at line 21 of file EnsiteToXml.cpp.

Referenced by operator==().

double Vertex::X

Definition at line 24 of file makeEllipsoidNektar.c.

Referenced by CreateBasicCubicMesh(), CutEdge(), ExtractSubmesh(), MakeClockwiseOrder(), ProjectMeshEllipsoid(), ProjectMeshEllipsoidAndRefine(), ProjectMeshSphere(), ProjectMeshSphereAndRefine(), RefineMesh(), and WriteMesh().

int Vertex::x

Definition at line 38 of file VtkToFld.cpp.

double Vertex::y

Definition at line 22 of file EnsiteToXml.cpp.

Referenced by operator==().

double Vertex::Y

Definition at line 25 of file makeEllipsoidNektar.c.

Referenced by CreateBasicCubicMesh(), CutEdge(), ExtractSubmesh(), MakeClockwiseOrder(), ProjectMeshEllipsoid(), ProjectMeshEllipsoidAndRefine(), ProjectMeshSphere(), ProjectMeshSphereAndRefine(), RefineMesh(), and WriteMesh().

int Vertex::y

Definition at line 39 of file VtkToFld.cpp.

double Vertex::z

Definition at line 23 of file EnsiteToXml.cpp.

Referenced by operator==().

double Vertex::Z

Definition at line 26 of file makeEllipsoidNektar.c.

Referenced by CreateBasicCubicMesh(), CutEdge(), ExtractSubmesh(), MakeClockwiseOrder(), ProjectMeshEllipsoid(), ProjectMeshEllipsoidAndRefine(), ProjectMeshSphere(), ProjectMeshSphereAndRefine(), RefineMesh(), and WriteMesh().

int Vertex::z

Definition at line 40 of file VtkToFld.cpp.