From a17cf30548c412b832ac3d31899a6a38ffbedf47 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 15 Nov 2016 08:51:21 +0000 Subject: [PATCH] --- Geo/MQuadrangle.cpp | 2 +- Geo/MTriangle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/MQuadrangle.cpp b/Geo/MQuadrangle.cpp index d7a3bea47f..7d08bed452 100644 --- a/Geo/MQuadrangle.cpp +++ b/Geo/MQuadrangle.cpp @@ -26,7 +26,7 @@ void MQuadrangle::getEdgeRep(bool curved, int num, double *x, double *y, double MVertex *v1 = _v[edges_quad(num, 1)]; x[0] = v0->x(); y[0] = v0->y(); z[0] = v0->z(); x[1] = v1->x(); y[1] = v1->y(); z[1] = v1->z(); - if(CTX::instance()->mesh.lightLines > 1){ + if(CTX::instance()->mesh.lightLines){ static const int vv[4] = {2, 3, 0, 1}; MVertex *v2 = _v[vv[num]]; SVector3 t1(x[1] - x[0], y[1] - y[0], z[1] - z[0]); diff --git a/Geo/MTriangle.cpp b/Geo/MTriangle.cpp index 36ab88f843..2d6c685d9b 100644 --- a/Geo/MTriangle.cpp +++ b/Geo/MTriangle.cpp @@ -27,7 +27,7 @@ void MTriangle::getEdgeRep(bool curved, int num, double *x, double *y, double *z MVertex *v1 = _v[edges_tri(num, 1)]; x[0] = v0->x(); y[0] = v0->y(); z[0] = v0->z(); x[1] = v1->x(); y[1] = v1->y(); z[1] = v1->z(); - if(CTX::instance()->mesh.lightLines > 1){ + if(CTX::instance()->mesh.lightLines){ static const int vv[3] = {2, 0, 1}; MVertex *v2 = _v[vv[num]]; SVector3 t1(x[1] - x[0], y[1] - y[0], z[1] - z[0]); -- GitLab