Changeset 5095 for issm/trunk/src/c/objects/Bamg/Mesh.h
- Timestamp:
- 08/09/10 14:46:47 (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Bamg/Mesh.h
r5086 r5095 21 21 class SubDomain; 22 22 23 class Triangles{23 class Mesh { 24 24 public: 25 25 26 26 Geometry & Gh; // Geometry 27 Triangles& BTh; // Background Mesh Bth==*this =>no background27 Mesh & BTh; // Background Mesh Bth==*this =>no background 28 28 long NbRef; // counter of ref on the this class if 0 we can delete 29 29 long nbvx,nbtx; // nombre max de sommets , de triangles … … 57 57 58 58 //Constructors/Destructors 59 Triangles(BamgGeom* bamggeom,BamgMesh* bamgmesh,BamgOpts* bamgopts);60 Triangles(double* index,double* x,double* y,int nods,int nels);61 Triangles(Triangles &,Geometry * pGh=0,Triangles* pBTh=0,long nbvxx=0 ); //copy operator62 Triangles(const Triangles&,const int *flag,const int *bb,BamgOpts* bamgopts); // truncature63 Triangles(long nbvx,Triangles& BT,BamgOpts* bamgopts,int keepBackVertices=1) :Gh(BT.Gh),BTh(BT) {59 Mesh(BamgGeom* bamggeom,BamgMesh* bamgmesh,BamgOpts* bamgopts); 60 Mesh(double* index,double* x,double* y,int nods,int nels); 61 Mesh(Mesh &,Geometry * pGh=0,Mesh* pBTh=0,long nbvxx=0 ); //copy operator 62 Mesh(const Mesh &,const int *flag,const int *bb,BamgOpts* bamgopts); // truncature 63 Mesh(long nbvx,Mesh & BT,BamgOpts* bamgopts,int keepBackVertices=1) :Gh(BT.Gh),BTh(BT) { 64 64 try {GeomToTriangles1(nbvx,bamgopts,keepBackVertices);} 65 catch(...) { this->~ Triangles(); throw; }66 } 67 Triangles(long nbvx,Geometry & G,BamgOpts* bamgopts) :Gh(G),BTh(*this){65 catch(...) { this->~Mesh(); throw; } 66 } 67 Mesh(long nbvx,Geometry & G,BamgOpts* bamgopts) :Gh(G),BTh(*this){ 68 68 try { GeomToTriangles0(nbvx,bamgopts);} 69 catch(...) { this->~ Triangles(); throw; }70 } 71 ~ Triangles();69 catch(...) { this->~Mesh(); throw; } 70 } 71 ~Mesh(); 72 72 73 73 //Operators … … 104 104 int SplitElement(int choice); 105 105 void MakeQuadTree(); 106 void NewPoints( Triangles&,BamgOpts* bamgopts,int KeepVertices=1);106 void NewPoints(Mesh &,BamgOpts* bamgopts,int KeepVertices=1); 107 107 long InsertNewPoints(long nbvold,long & NbTSwap) ; 108 108 void ReNumberingTheTriangleBySubDomain(bool justcompress=false);
Note:
See TracChangeset
for help on using the changeset viewer.