Changeset 3237


Ignore:
Timestamp:
03/09/10 15:38:32 (15 years ago)
Author:
Mathieu Morlighem
Message:

shared/FindTriangle.h not needed anymore

Location:
issm/trunk/src/c/Bamgx
Files:
1 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/BamgObjects.h

    r3236 r3237  
    134134                return  bax*cay - bay*cax;
    135135        }
    136         inline  TriangleAdjacent FindTriangleAdjacent(Edge &E){
    137                 Vertex * a = E.v[0];
    138                 Vertex * b = E.v[1];
    139 
    140                 Triangle * t = a->t;
    141                 int i = a->vint;
    142                 TriangleAdjacent ta(t,EdgesVertexTriangle[i][0]); // Previous edge
    143                 if (!t || i<0 || i>=3){
    144                         throw ErrorException(__FUNCT__,exprintf("!t || i<0 !! i>=3"));
    145                 }
    146                 if ( a!=(*t)(i)){
    147                         throw ErrorException(__FUNCT__,exprintf("a!=(*t)(i)"));
    148                 }
    149                 int k=0;
    150                 do { // turn around vertex in direct sens (trigo)
    151                         k++;
    152                         if (k>=20000){
    153                                 throw ErrorException(__FUNCT__,exprintf("k>=20000"));
    154                         }
    155                         //  in no crack => ta.EdgeVertex(1) == a otherwise ???
    156                         if (ta.EdgeVertex(1) ==  a && ta.EdgeVertex(0) ==  b) return ta; // find
    157                         ta = ta.Adj();
    158                         if (ta.EdgeVertex(0) ==  a && ta.EdgeVertex(1) ==  b) return ta; // find
    159                         --ta;
    160                 } while (t != (Triangle *)ta);
    161                 throw ErrorException(__FUNCT__,exprintf("FindTriangleAdjacent: triangle not found"));
    162                 return TriangleAdjacent(0,0);//for compiler
    163         }
     136
    164137        /*}}}1*/
    165138
  • issm/trunk/src/c/Bamgx/objects/CrackedEdge.h

    r3236 r3237  
    1313#include "Triangle.h"
    1414#include "../shared/TheVertex.h"
     15#include "../shared/FindTriangleAdjacent.h"
    1516
    1617namespace bamg {
  • issm/trunk/src/c/Bamgx/objects/Edge.h

    r3232 r3237  
    5050
    5151        };
    52 
    53         //FOR NOW
    54         inline TriangleAdjacent FindTriangleAdjacent(Edge &E);
    55 
    5652}
    5753#endif
  • issm/trunk/src/c/Bamgx/shared/shared.h

    r3236 r3237  
    1010#include "CloseBoundaryEdge.h"
    1111#include "CloseBoundaryEdgeV2.h"
    12 #include "FindTriangle.h"
    1312#include "ForceEdge.h"
    1413#include "shared.h"
     
    1615#include "swap.h"
    1716#include "TheVertex.h"
     17#include "FindTriangleAdjacent.h"
    1818
    1919#endif
Note: See TracChangeset for help on using the changeset viewer.