gascoignemesh3d.h

Go to the documentation of this file.
00001 #ifndef  __GascoigneMesh3d_h
00002 #define  __GascoigneMesh3d_h
00003 
00004 #include  "gascoignemesh.h"
00005 #include  "vertex.h"
00006 
00007 /*-----------------------------------------*/
00008 
00009 namespace Gascoigne
00010 {
00011 class GascoigneMesh3d : public GascoigneMesh
00012 {
00013 protected:
00014 
00015   // basic
00016   std::vector<Vertex3d>   nx;
00017 
00018 public:
00019 
00020   GascoigneMesh3d();
00021   ~GascoigneMesh3d() {}
00022 
00023   std::string GetName() const {return "GascoigneMesh3d";}
00024 
00025         std::vector<Vertex3d>& GetVertexVector()       {return nx;}
00026   const std::vector<Vertex3d>& GetVertexVector() const {return nx;}
00027 
00028   int  dimension() const {return 3;}
00029   int  nnodes()    const {return nx.size();}
00030   int  ncells()    const {return nc.size()/8;}
00031 
00032   int  nodes_per_cell(int i)  const { return 8;}
00033   int  VtkType(int i) const { return 12;}
00034 
00035   const Vertex3d& vertex3d(int i) const { return nx[i];} 
00036   int  vertex_of_cell(int i, int ii) const { return nc[8*i+ii]; }
00037 
00038   IntVector  IndicesOfCell(int iq) const;
00039 };
00040 }
00041 
00042 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7