Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4c8d88c3
Commit
4c8d88c3
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
New mesh option: MinimumCirclePoints
parent
542cae32
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/Context.h
+2
-2
2 additions, 2 deletions
Common/Context.h
Common/Options.h
+3
-1
3 additions, 1 deletion
Common/Options.h
Mesh/1D_Mesh.cpp
+2
-4
2 additions, 4 deletions
Mesh/1D_Mesh.cpp
with
7 additions
and
7 deletions
Common/Context.h
+
2
−
2
View file @
4c8d88c3
/* $Id: Context.h,v 1.1
3
2000-12-05
18:38:08
geuzaine Exp $ */
/* $Id: Context.h,v 1.1
4
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
;
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
3
−
1
View file @
4c8d88c3
/* $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
.
},
...
...
This diff is collapsed.
Click to expand it.
Mesh/1D_Mesh.cpp
+
2
−
4
View file @
4c8d88c3
/* $Id: 1D_Mesh.cpp,v 1.
7
2000-1
1-28 11:28:31
geuzaine Exp $ */
/* $Id: 1D_Mesh.cpp,v 1.
8
2000-1
2-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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment