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

Merge branch 'master' of https://gitlab.onelab.info/gmsh/gmsh

parents 3644ec57 03febe95
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ SVector3 gmshFace::normal(const SPoint2 &param) const
for(int i = 0; i < List_Nbr(_s->Generatrices); i++) {
Curve *c;
List_Read(_s->Generatrices, i, &c);
int N = (c->Typ == MSH_SEGM_LINE) ? 1 : NP;
int N = (c->Typ == MSH_SEGM_LINE && List_Nbr(c->Control_Points) == 2) ? 1 : NP;
for(int j = 0; j < N; j++) {
double u1 = (double)j / (double)N;
double u2 = (double)(j + 1) / (double)N;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment