Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::NCHelper::Node3D Class Reference

#include <NCHelper.hpp>

Public Member Functions

bool operator< (const Node3D &) const
 
 Node3D (double x, double y, double z)
 

Public Attributes

double coords [3]
 

Detailed Description

Definition at line 58 of file NCHelper.hpp.

Constructor & Destructor Documentation

◆ Node3D()

moab::NCHelper::Node3D::Node3D ( double  x,
double  y,
double  z 
)
inline

Definition at line 63 of file NCHelper.hpp.

64  {
65  coords[0] = x;
66  coords[1] = y;
67  coords[2] = z;
68  }

References coords.

Member Function Documentation

◆ operator<()

bool moab::NCHelper::Node3D::operator< ( const Node3D other) const

Definition at line 1439 of file NCHelper.cpp.

1440 {
1441  if( coords[0] <= other.coords[0] - tolerance )
1442  return true;
1443  else if( coords[0] >= other.coords[0] + tolerance )
1444  return false;
1445  if( coords[1] <= other.coords[1] - tolerance )
1446  return true;
1447  else if( coords[1] >= other.coords[1] + tolerance )
1448  return false;
1449  if( coords[2] <= other.coords[2] - tolerance )
1450  return true;
1451  else if( coords[0] >= other.coords[0] + tolerance )
1452  return false;
1453 
1454  return false;
1455 }

References coords, and moab::tolerance.

Member Data Documentation

◆ coords

double moab::NCHelper::Node3D::coords[3]

Definition at line 61 of file NCHelper.hpp.

Referenced by moab::NCHelperDomain::create_mesh(), Node3D(), and operator<().


The documentation for this class was generated from the following files: