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
4bf278aa
Commit
4bf278aa
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
options + typos
parent
37a5311c
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Common/Context.h
+4
-2
4 additions, 2 deletions
Common/Context.h
Common/Options.h
+10
-6
10 additions, 6 deletions
Common/Options.h
DataStr/Malloc.cpp
+2
-1
2 additions, 1 deletion
DataStr/Malloc.cpp
Unix/CbFile.cpp
+11
-3
11 additions, 3 deletions
Unix/CbFile.cpp
www/gmsh.html
+3
-3
3 additions, 3 deletions
www/gmsh.html
with
30 additions
and
15 deletions
Common/Context.h
+
4
−
2
View file @
4bf278aa
/* $Id: Context.h,v 1.2
4
2000-12-2
7
1
7:25:52
geuzaine Exp $ */
/* $Id: Context.h,v 1.2
5
2000-12-2
8
1
8:58:37
geuzaine Exp $ */
#ifndef _CONTEXT_H_
#ifndef _CONTEXT_H_
#define _CONTEXT_H_
#define _CONTEXT_H_
...
@@ -143,7 +143,9 @@ class Context_T {
...
@@ -143,7 +143,9 @@ class Context_T {
/* print options */
/* print options */
struct
{
struct
{
int
format
;
int
format
;
int
eps_quality
,
jpeg_quality
;
int
eps_quality
;
int
jpeg_quality
;
int
gif_dither
,
gif_sort
,
gif_interlace
,
gif_transparent
;
char
*
font
;
char
*
font
;
int
font_size
,
gl_fonts
;
int
font_size
,
gl_fonts
;
}
print
;
}
print
;
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
10
−
6
View file @
4bf278aa
/* $Id: Options.h,v 1.1
3
2000-12-2
7
1
7:25:52
geuzaine Exp $ */
/* $Id: Options.h,v 1.1
4
2000-12-2
8
1
8:58:37
geuzaine Exp $ */
#ifndef _OPTIONS_H_
#ifndef _OPTIONS_H_
#define _OPTIONS_H_
#define _OPTIONS_H_
...
@@ -200,6 +200,10 @@ StringXNumber PrintOptions_Number[] = {
...
@@ -200,6 +200,10 @@ StringXNumber PrintOptions_Number[] = {
{
"Format"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
format
,
FORMAT_AUTO
},
{
"Format"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
format
,
FORMAT_AUTO
},
{
"EpsQuality"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
eps_quality
,
1
},
{
"EpsQuality"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
eps_quality
,
1
},
{
"JpegQuality"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
jpeg_quality
,
100
},
{
"JpegQuality"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
jpeg_quality
,
100
},
{
"GifDither"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
gif_dither
,
1
},
{
"GifSort"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
gif_sort
,
1
},
{
"GifInterlace"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
gif_interlace
,
0
},
{
"GifTransparent"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
gif_transparent
,
0
},
{
"FontSize"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
font_size
,
12
.
},
{
"FontSize"
,
GMSH_INT
,
(
void
*
)
&
CTX
.
print
.
font_size
,
12
.
},
{
NULL
,
GMSH_DOUBLE
,
NULL
,
0
.
}
{
NULL
,
GMSH_DOUBLE
,
NULL
,
0
.
}
}
;
}
;
...
...
This diff is collapsed.
Click to expand it.
DataStr/Malloc.cpp
+
2
−
1
View file @
4bf278aa
/* $Id: Malloc.cpp,v 1.
4
2000-1
1
-2
6
18:
43:48
geuzaine Exp $ */
/* $Id: Malloc.cpp,v 1.
5
2000-1
2
-2
8
18:
58:37
geuzaine Exp $ */
#include
<stdio.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdlib.h>
#include
<malloc.h>
#include
<malloc.h>
...
@@ -41,4 +41,5 @@ void Free(void *ptr)
...
@@ -41,4 +41,5 @@ void Free(void *ptr)
{
{
if
(
ptr
==
NULL
)
return
;
if
(
ptr
==
NULL
)
return
;
free
(
ptr
);
free
(
ptr
);
ptr
=
NULL
;
}
}
This diff is collapsed.
Click to expand it.
Unix/CbFile.cpp
+
11
−
3
View file @
4bf278aa
/* $Id: CbFile.cpp,v 1.1
8
2000-12-2
7
1
0:07:23
geuzaine Exp $ */
/* $Id: CbFile.cpp,v 1.1
9
2000-12-2
8
1
8:58:37
geuzaine Exp $ */
#include
<unistd.h>
#include
<unistd.h>
...
@@ -124,7 +124,8 @@ void CreateFile (char *name, int format) {
...
@@ -124,7 +124,8 @@ void CreateFile (char *name, int format) {
}
}
Replot
();
Replot
();
create_jpeg
(
fp
,
CTX
.
viewport
[
2
]
-
CTX
.
viewport
[
0
],
create_jpeg
(
fp
,
CTX
.
viewport
[
2
]
-
CTX
.
viewport
[
0
],
CTX
.
viewport
[
3
]
-
CTX
.
viewport
[
1
]);
CTX
.
viewport
[
3
]
-
CTX
.
viewport
[
1
],
CTX
.
print
.
jpeg_quality
);
Msg
(
INFOS
,
"JPEG Creation Complete '%s'"
,
name
);
Msg
(
INFOS
,
"JPEG Creation Complete '%s'"
,
name
);
Msg
(
INFO
,
"Wrote File '%s'"
,
name
);
Msg
(
INFO
,
"Wrote File '%s'"
,
name
);
fclose
(
fp
);
fclose
(
fp
);
...
@@ -137,7 +138,14 @@ void CreateFile (char *name, int format) {
...
@@ -137,7 +138,14 @@ void CreateFile (char *name, int format) {
}
}
Replot
();
Replot
();
create_gif
(
fp
,
CTX
.
viewport
[
2
]
-
CTX
.
viewport
[
0
],
create_gif
(
fp
,
CTX
.
viewport
[
2
]
-
CTX
.
viewport
[
0
],
CTX
.
viewport
[
3
]
-
CTX
.
viewport
[
1
]);
CTX
.
viewport
[
3
]
-
CTX
.
viewport
[
1
],
CTX
.
print
.
gif_dither
,
CTX
.
print
.
gif_sort
,
CTX
.
print
.
gif_interlace
,
CTX
.
print
.
gif_transparent
,
UNPACK_RED
(
CTX
.
color
.
bg
),
UNPACK_GREEN
(
CTX
.
color
.
bg
),
UNPACK_BLUE
(
CTX
.
color
.
bg
));
Msg
(
INFOS
,
"GIF Creation Complete '%s'"
,
name
);
Msg
(
INFOS
,
"GIF Creation Complete '%s'"
,
name
);
Msg
(
INFO
,
"Wrote File '%s'"
,
name
);
Msg
(
INFO
,
"Wrote File '%s'"
,
name
);
fclose
(
fp
);
fclose
(
fp
);
...
...
This diff is collapsed.
Click to expand it.
www/gmsh.html
+
3
−
3
View file @
4bf278aa
...
@@ -304,9 +304,9 @@ files.
...
@@ -304,9 +304,9 @@ files.
<td><font
face=
"Helvetica, Arial"
size=
-1
>
<td><font
face=
"Helvetica, Arial"
size=
-1
>
New in 1.00: Added PPM and YUV output; Corrected nested If/Endif;
New in 1.00: Added PPM and YUV output; Corrected nested If/Endif;
Corrected se
g. fault on repeated saves; Slightly c
han
g
ed
the
Corrected se
veral bugs for pixel output and en
han
c
ed
GIF output
post-processing file format to allow both single and double precision
(dithering, transparency); Slightly changed the post-processing file
numbers.
format to allow both single and double precision
numbers.
<p>
<p>
New in 0.999: Added JPEG output and easy MPEG generation (see t8.geo in the
New in 0.999: Added JPEG output and easy MPEG generation (see t8.geo in the
tutorial); Clean up of export functions; small fixes; Linux versions
tutorial); Clean up of export functions; small fixes; Linux versions
...
...
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