Mesh Oriented datABase  (version 5.6.0)
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 1502 of file NCHelper.cpp.

1503 {
1504  if( coords[0] <= other.coords[0] - tolerance )
1505  return true;
1506  else if( coords[0] >= other.coords[0] + tolerance )
1507  return false;
1508  if( coords[1] <= other.coords[1] - tolerance )
1509  return true;
1510  else if( coords[1] >= other.coords[1] + tolerance )
1511  return false;
1512  if( coords[2] <= other.coords[2] - tolerance )
1513  return true;
1514  else if( coords[0] >= other.coords[0] + tolerance )
1515  return false;
1516 
1517  return false;
1518 }

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: