Skip to content
Snippets Groups Projects
Commit ad7895b0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

coverity fixes

parent ac5628cc
No related branches found
No related tags found
No related merge requests found
......@@ -453,8 +453,9 @@ void buildVertexCavity_recur(MTet4 *t, MVertex *v, std::vector<MTet4*> &cavity)
}
}
if (iV == -1){
Msg::Fatal("trying to build a cavity of tets for a vertex that does not "
Msg::Error("Trying to build a cavity of tets for a vertex that does not "
"belong to this tet");
return;
}
for (int i = 0; i < 3; i++){
MTet4 *neigh = t->getNeigh(vFac[iV][i]);
......
......@@ -677,6 +677,7 @@ static void addScalarPolygon(PView *p, double **xyz,
ite != edges.end(); ite++){
int i = (int) (*ite).second / 100;
int j = (*ite).second % 100;
if(j < 3)
addScalarLine(p, xyz, val, pre, 3*i+il[j][0], 3*i+il[j][0], true);
}
opt->boundary++;
......@@ -858,6 +859,7 @@ static void addScalarPyramid(PView *p, double **xyz,
static void addOutlinePolyhedron(PView *p, double **xyz,
unsigned int color, bool pre, int numNodes)
{
// FIXME: this code is horribly slow
const int it[4][3] = {{0, 2, 1}, {0, 1, 3}, {0, 3, 2}, {3, 1, 2}};
std::map<MFace, int, Less_Face> triFaces;
std::vector<MVertex *> verts;
......@@ -878,6 +880,7 @@ static void addOutlinePolyhedron(PView *p, double **xyz,
ite != triFaces.end(); ite++){
int i = (int) (*ite).second / 100;
int j = (*ite).second % 100;
if(j < 4)
addOutlineTriangle(p, xyz, color, pre, 4*i+it[j][0], 4*i+it[j][1], 4*i+it[j][2]);
}
for(int i = 0; i < numNodes; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment