Ignore:
Timestamp:
04/06/10 11:19:09 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved BamgVertex to MeshVertex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/objects/Geometry.cpp

    r3335 r3407  
    120120                }
    121121                else{
    122                         ISSMERROR(exprintf("No Vertex provided"));
     122                        ISSMERROR(exprintf("No MeshVertex provided"));
    123123                }
    124124
     
    438438                double eps=1e-20;
    439439                QuadTree quadtree; // build quadtree to find duplicates
    440                 Vertex* v0=vertices;
     440                MeshVertex* v0=vertices;
    441441                GeometricalVertex* v0g=(GeometricalVertex*) (void*)v0;   
    442442
     
    457457
    458458                        //find nearest vertex already present in the quadtree (NULL if empty)
    459                         Vertex* v=quadtree.NearestVertex(vertices[i].i.x,vertices[i].i.y);
     459                        MeshVertex* v=quadtree.NearestVertex(vertices[i].i.x,vertices[i].i.y);
    460460
    461461                        //if there is a vertex found that is to close to vertices[i] -> error
     
    465465                                j=vg-v0g;
    466466                                //check that the clostest vertex is not itself...
    467                                 if ( v !=  &(Vertex &) vertices[j]){
    468                                         ISSMERROR(exprintf(" v !=  &(Vertex &) vertices[j]"));
     467                                if ( v !=  &(MeshVertex &) vertices[j]){
     468                                        ISSMERROR(exprintf(" v !=  &(MeshVertex &) vertices[j]"));
    469469                                }
    470470                                vertices[i].link = vertices + j;
     
    830830        /*}}}1*/
    831831        /*FUNCTION  Geometry::ProjectOnCurve {{{1*/
    832         GeometricalEdge* Geometry::ProjectOnCurve(const Edge &e,double s,Vertex &V,VertexOnGeom &GV) const {
     832        GeometricalEdge* Geometry::ProjectOnCurve(const Edge &e,double s,MeshVertex &V,VertexOnGeom &GV) const {
    833833                /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/ProjectOnCurve)*/
    834834                /*Add a vertex on an existing geometrical edge according to the metrics of the two vertices constituting the edge*/
     
    849849
    850850                //Get the two vertices of the edge
    851                 const Vertex &v0=e[0];
    852                 const Vertex &v1=e[1];
     851                const MeshVertex &v0=e[0];
     852                const MeshVertex &v1=e[1];
    853853
    854854                //Get position of V0, V1 and vector v0->v1
     
    916916
    917917                if ((*eg0)(sens0)==(GeometricalVertex*)vg0)
    918                  vg0=VertexOnGeom(*(Vertex*) vg0,*eg0,sens0); //vg0 = absisce
     918                 vg0=VertexOnGeom(*(MeshVertex*) vg0,*eg0,sens0); //vg0 = absisce
    919919
    920920                if ((*eg1)(sens1)==(GeometricalVertex*)vg1)
    921                  vg1=VertexOnGeom(*(Vertex*) vg1,*eg1,sens1);
     921                 vg1=VertexOnGeom(*(MeshVertex*) vg1,*eg1,sens1);
    922922
    923923                double sg;
Note: See TracChangeset for help on using the changeset viewer.