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

New mesh option: MinimumCirclePoints

parent 542cae32
No related branches found
No related tags found
No related merge requests found
/* $Id: Context.h,v 1.13 2000-12-05 18:38:08 geuzaine Exp $ */ /* $Id: Context.h,v 1.14 2000-12-05 20:02:12 geuzaine Exp $ */
#ifndef _CONTEXT_H_ #ifndef _CONTEXT_H_
#define _CONTEXT_H_ #define _CONTEXT_H_
...@@ -126,7 +126,7 @@ class Context_T { ...@@ -126,7 +126,7 @@ class Context_T {
int dual, interactive; int dual, interactive;
int hidden, shade; int hidden, shade;
int format, nb_smoothing, algo, degree; int format, nb_smoothing, algo, degree;
int point_insertion, speed_max; int point_insertion, speed_max, min_circ_points;
double normals, tangents, explode; double normals, tangents, explode;
} mesh; } mesh;
......
/* $Id: Options.h,v 1.2 2000-12-05 18:38:09 geuzaine Exp $ */ /* $Id: Options.h,v 1.3 2000-12-05 20:02:12 geuzaine Exp $ */
#ifndef _OPTIONS_H_ #ifndef _OPTIONS_H_
#define _OPTIONS_H_ #define _OPTIONS_H_
...@@ -115,6 +115,8 @@ StringXNumber MeshOptions_Number[] = { ...@@ -115,6 +115,8 @@ StringXNumber MeshOptions_Number[] = {
{ "Algorithm" , GMSH_INT, (void*)&CTX.mesh.algo , DELAUNAY_OLDALGO }, { "Algorithm" , GMSH_INT, (void*)&CTX.mesh.algo , DELAUNAY_OLDALGO },
{ "PointInsertion" , GMSH_INT, (void*)&CTX.mesh.point_insertion, CENTER_CIRCCIRC }, { "PointInsertion" , GMSH_INT, (void*)&CTX.mesh.point_insertion, CENTER_CIRCCIRC },
{ "SpeedMax" , GMSH_INT, (void*)&CTX.mesh.speed_max , 0. }, { "SpeedMax" , GMSH_INT, (void*)&CTX.mesh.speed_max , 0. },
{ "MinimumCirclePoints" ,
GMSH_INT, (void*)&CTX.mesh.min_circ_points, 7. },
{ "Degree" , GMSH_INT, (void*)&CTX.mesh.degree , 1. }, { "Degree" , GMSH_INT, (void*)&CTX.mesh.degree , 1. },
{ "Dual" , GMSH_INT, (void*)&CTX.mesh.dual , 0. }, { "Dual" , GMSH_INT, (void*)&CTX.mesh.dual , 0. },
{ "Interactive" , GMSH_INT, (void*)&CTX.mesh.interactive , 0. }, { "Interactive" , GMSH_INT, (void*)&CTX.mesh.interactive , 0. },
......
/* $Id: 1D_Mesh.cpp,v 1.7 2000-11-28 11:28:31 geuzaine Exp $ */ /* $Id: 1D_Mesh.cpp,v 1.8 2000-12-05 20:02:16 geuzaine Exp $ */
#include "Gmsh.h" #include "Gmsh.h"
#include "Const.h" #include "Const.h"
...@@ -81,8 +81,6 @@ double F_Lc (double t){ ...@@ -81,8 +81,6 @@ double F_Lc (double t){
return THEM->Metric->getLc(t, THEC); return THEM->Metric->getLc(t, THEC);
} }
double CIRC_GRAN = 10.;
void Maillage_Curve (void *data, void *dummy){ void Maillage_Curve (void *data, void *dummy){
Curve **pc, *c; Curve **pc, *c;
Simplex *s; Simplex *s;
...@@ -121,7 +119,7 @@ void Maillage_Curve (void *data, void *dummy){ ...@@ -121,7 +119,7 @@ void Maillage_Curve (void *data, void *dummy){
c->Typ == MSH_SEGM_ELLI || c->Typ == MSH_SEGM_ELLI ||
c->Typ == MSH_SEGM_ELLI_INV){ c->Typ == MSH_SEGM_ELLI_INV){
N = IMAX (N, (int) (fabs (c->Circle.t1 - c->Circle.t2) * N = IMAX (N, (int) (fabs (c->Circle.t1 - c->Circle.t2) *
CIRC_GRAN / Pi)); (double)CTX.mesh.min_circ_points / Pi));
} }
else if (c->Typ == MSH_SEGM_NURBS){ else if (c->Typ == MSH_SEGM_NURBS){
N = IMAX (N, 2); N = IMAX (N, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment