Ignore:
Timestamp:
08/09/10 14:46:47 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved Triangles class to Mesh (makes more sense)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Bamg/Mesh.h

    r5086 r5095  
    2121        class SubDomain;
    2222
    23         class Triangles {
     23        class Mesh {
    2424                public:
    2525
    2626                        Geometry & Gh;   // Geometry
    27                         Triangles & BTh; // Background Mesh Bth==*this =>no  background
     27                        Mesh & BTh; // Background Mesh Bth==*this =>no  background
    2828                        long NbRef;      // counter of ref on the this class if 0 we can delete
    2929                        long nbvx,nbtx;  // nombre max  de sommets , de  triangles
     
    5757
    5858                        //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 operator
    62                         Triangles(const Triangles &,const int *flag,const int *bb,BamgOpts* bamgopts); // truncature
    63                         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) {
    6464                                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){
    6868                                try { GeomToTriangles0(nbvx,bamgopts);}
    69                                 catch(...) { this->~Triangles(); throw; }
    70                         }
    71                         ~Triangles();
     69                                catch(...) { this->~Mesh(); throw; }
     70                        }
     71                        ~Mesh();
    7272
    7373                        //Operators
     
    104104                        int  SplitElement(int choice);
    105105                        void MakeQuadTree();
    106                         void NewPoints(Triangles &,BamgOpts* bamgopts,int KeepVertices=1);
     106                        void NewPoints(Mesh &,BamgOpts* bamgopts,int KeepVertices=1);
    107107                        long InsertNewPoints(long nbvold,long & NbTSwap) ;
    108108                        void ReNumberingTheTriangleBySubDomain(bool justcompress=false);
Note: See TracChangeset for help on using the changeset viewer.