Node Struct Reference

Stores one node of a mesh. More...

#include <mesh.h>

List of all members.

Public Member Functions

bool is_constrained_vertex () const
void ref_element (Element *e=NULL)
void unref_element (HashTable *ht, Element *e=NULL)

Public Attributes

int id
 node id number
unsigned ref:29
 the number of elements using the node
unsigned type:1
 0 = vertex node; 1 = edge node
unsigned bnd:1
 1 = boundary node; 0 = inner node
unsigned used:1
 array item usage flag
union {
   struct {
      double   x
      double   y
 vertex node coordinates
   } 
   struct {
      int   marker
 edge marker
      Element *   elem [2]
 elements sharing the edge node
      Nurbs *   nurbs
 temporary curved edge ptr (only for loading the mesh)
   } 
}; 
int p1
int p2
 parent id numbers
Nodenext_hash
 next node in hash synonym list

Detailed Description

Stores one node of a mesh.

There are are two variants of this structure, depending on the value of the member 'type':

  1. H2D_TYPE_VERTEX -- vertex node. Has physical coordinates x, y.
  2. H2D_TYPE_EDGE -- edge node. Only stores edge marker and two element pointers.

Member Function Documentation

bool Node::is_constrained_vertex (  )  const [inline]
void Node::ref_element ( Element e = NULL  ) 
void Node::unref_element ( HashTable ht,
Element e = NULL 
)

Member Data Documentation

union { ... }
unsigned Node::bnd

1 = boundary node; 0 = inner node

elements sharing the edge node

int Node::id

node id number

edge marker

next node in hash synonym list

temporary curved edge ptr (only for loading the mesh)

int Node::p1
int Node::p2

parent id numbers

unsigned Node::ref

the number of elements using the node

unsigned Node::type

0 = vertex node; 1 = edge node

unsigned Node::used

array item usage flag

double Node::x
double Node::y

vertex node coordinates


The documentation for this struct was generated from the following files:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3