ESyS-Particle  4.0.1
MeshData.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 #ifndef __MESHDATA_H
00014 #define __MESHDATA_H
00015 
00016 #include "Foundation/vec3.h"
00017 
00018 #include <iostream>
00019 
00023 struct MeshNodeData
00024 {
00025   MeshNodeData();
00026   
00027   MeshNodeData(int id, const Vec3 &pt, int tag=0);
00028   
00029   int id;
00030   int tag;
00031   double x,y,z;
00032 
00033   void read(std::istream&);
00034 };
00035 
00039 struct MeshTriData
00040 {
00041   MeshTriData();
00042   
00043   MeshTriData(int id, int nodeId0, int nodeId1, int nodeId2, int tag=0);
00044   
00045   int id,tag;
00046   int p1,p2,p3;
00047 
00048   void read(std::istream&);
00049 };
00050 
00051 
00052 #endif // __MESHDATA_H