Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Face.cpp File Reference
#include "Face.hpp"
#include "TriFace.hpp"
#include "QuadFace.hpp"
#include "Mesh.hpp"
Include dependency graph for Face.cpp:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &stream, Face &face)
 
istream & operator>> (istream &stream, Face &face)
 

Function Documentation

ostream& operator<< ( ostream &  stream,
Face face 
)

Definition at line 59 of file Face.cpp.

59  {
60 
61  return stream;
62 }
istream& operator>> ( istream &  stream,
Face face 
)

Definition at line 64 of file Face.cpp.

References Face::d_nodes, Mesh::getNode(), Face::getNumNodes(), i, and Face::s_mesh.

64  {
65 
66  // read nodes & set
67 
68  int numn = face.getNumNodes();
69  int i;
70  for( i = 0; i < numn; i++ ){
71  int node_id;
72  stream >> node_id;
73  Node *node = face.s_mesh->getNode(node_id);
74  face.d_nodes[i] = node;
75  }
76 
77  return stream;
78 
79 }
static Mesh * s_mesh
Definition: Face.hpp:168
This class encapsulate a node over a window manifold.
Definition: Manifold_2.h:370
Definition: adj.h:150
blockLoc i
Definition: read.cpp:79
Node * getNode(int ID)
The following get methods return a node, face or element.
Definition: Mesh.hpp:137
Node ** d_nodes
Array of nodes assigned to this face.
Definition: Face.hpp:161
virtual int getNumNodes() const =0
Retrieves the number of nodes that make up the face.

Here is the call graph for this function: