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

pp

parent ad987ee3
No related branches found
No related tags found
No related merge requests found
......@@ -119,12 +119,12 @@ class GEdge : public GEntity {
virtual void resetMeshAttributes();
struct {
char Method;
char Method;
double coeffTransfinite;
double meshSize;
int nbPointsTransfinite;
int typeTransfinite;
int minimumMeshSegments;
int nbPointsTransfinite;
int typeTransfinite;
int minimumMeshSegments;
// the extrusion parameters (if any)
ExtrudeParams *extrude;
} meshAttributes ;
......
// $Id: gmshEdge.cpp,v 1.46 2008-02-23 16:21:51 remacle Exp $
// $Id: gmshEdge.cpp,v 1.47 2008-02-23 17:38:34 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -114,7 +114,7 @@ int gmshEdge::minimumMeshSegments () const
(double)CTX.mesh.min_circ_points / Pi) - 1;
else
np = CTX.mesh.min_curv_points - 1;
return std::max(np,meshAttributes.minimumMeshSegments);
return std::max(np, meshAttributes.minimumMeshSegments);
}
int gmshEdge::minimumDrawSegments () const
......
// $Id: gmshFace.cpp,v 1.52 2008-02-23 16:31:06 remacle Exp $
// $Id: gmshFace.cpp,v 1.53 2008-02-23 17:38:34 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -31,7 +31,7 @@ gmshFace::gmshFace(GModel *m, Surface *face)
{
resetMeshAttributes();
for(int i = 0 ; i < List_Nbr(s->Generatrices); i++){
for(int i = 0; i < List_Nbr(s->Generatrices); i++){
Curve *c;
List_Read(s->Generatrices, i, &c);
GEdge *e = m->getEdgeByTag(abs(c->Num));
......@@ -42,7 +42,7 @@ gmshFace::gmshFace(GModel *m, Surface *face)
l_dirs.push_back((c->Num > 0) ? 1 : -1);
if (List_Nbr(s->Generatrices) == 2){
e->meshAttributes.minimumMeshSegments =
std::max(e->meshAttributes.minimumMeshSegments,2);
std::max(e->meshAttributes.minimumMeshSegments, 2);
}
}
else
......@@ -63,7 +63,7 @@ gmshFace::gmshFace(GModel *m, Surface *face)
}
if(s->EmbeddedCurves){
for(int i = 0 ; i < List_Nbr(s->EmbeddedCurves); i++){
for(int i = 0; i < List_Nbr(s->EmbeddedCurves); i++){
Curve *c;
List_Read(s->EmbeddedCurves, i, &c);
GEdge *e = m->getEdgeByTag(abs(c->Num));
......@@ -74,7 +74,7 @@ gmshFace::gmshFace(GModel *m, Surface *face)
}
}
if(s->EmbeddedPoints){
for(int i = 0 ; i < List_Nbr(s->EmbeddedPoints); i++){
for(int i = 0; i < List_Nbr(s->EmbeddedPoints); i++){
Vertex *v;
List_Read(s->EmbeddedPoints, i, &v);
GVertex *gv = m->getVertexByTag(v->Num);
......@@ -84,8 +84,6 @@ gmshFace::gmshFace(GModel *m, Surface *face)
Msg(GERROR, "Unknown point %d", v->Num);
}
}
// face->print_info();
}
double gmshFace::getMetricEigenvalue(const SPoint2 &pt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment