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
85cc4fff
Commit
85cc4fff
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
new FORMAT_OPT, removed FORMAT_XPM
parent
8c7db157
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Graphics/CreateFile.cpp
+8
-3
8 additions, 3 deletions
Graphics/CreateFile.cpp
with
8 additions
and
3 deletions
Graphics/CreateFile.cpp
+
8
−
3
View file @
85cc4fff
// $Id: CreateFile.cpp,v 1.2
1
2001-1
0-29 08:52:19
geuzaine Exp $
// $Id: CreateFile.cpp,v 1.2
2
2001-1
1-13 08:11:21
geuzaine Exp $
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
#include
"OpenFile.h"
#include
"OpenFile.h"
#include
"Draw.h"
#include
"Draw.h"
#include
"Context.h"
#include
"Context.h"
#include
"Options.h"
extern
Context_T
CTX
;
extern
Context_T
CTX
;
extern
Mesh
M
;
extern
Mesh
M
;
...
@@ -45,6 +46,7 @@ void CreateOutputFile (char *name, int format) {
...
@@ -45,6 +46,7 @@ void CreateOutputFile (char *name, int format) {
if
(
i
<=
0
)
strcpy
(
ext
,
""
);
if
(
i
<=
0
)
strcpy
(
ext
,
""
);
if
(
!
strcmp
(
ext
,
".geo"
))
CreateOutputFile
(
name
,
FORMAT_GEO
);
if
(
!
strcmp
(
ext
,
".geo"
))
CreateOutputFile
(
name
,
FORMAT_GEO
);
else
if
(
!
strcmp
(
ext
,
".opt"
))
CreateOutputFile
(
name
,
FORMAT_OPT
);
else
if
(
!
strcmp
(
ext
,
".msh"
))
CreateOutputFile
(
name
,
FORMAT_MSH
);
else
if
(
!
strcmp
(
ext
,
".msh"
))
CreateOutputFile
(
name
,
FORMAT_MSH
);
else
if
(
!
strcmp
(
ext
,
".unv"
))
CreateOutputFile
(
name
,
FORMAT_UNV
);
else
if
(
!
strcmp
(
ext
,
".unv"
))
CreateOutputFile
(
name
,
FORMAT_UNV
);
else
if
(
!
strcmp
(
ext
,
".gif"
))
CreateOutputFile
(
name
,
FORMAT_GIF
);
else
if
(
!
strcmp
(
ext
,
".gif"
))
CreateOutputFile
(
name
,
FORMAT_GIF
);
...
@@ -52,7 +54,6 @@ void CreateOutputFile (char *name, int format) {
...
@@ -52,7 +54,6 @@ void CreateOutputFile (char *name, int format) {
else
if
(
!
strcmp
(
ext
,
".jpeg"
))
CreateOutputFile
(
name
,
FORMAT_JPEG
);
else
if
(
!
strcmp
(
ext
,
".jpeg"
))
CreateOutputFile
(
name
,
FORMAT_JPEG
);
else
if
(
!
strcmp
(
ext
,
".ps"
))
CreateOutputFile
(
name
,
FORMAT_EPS
);
else
if
(
!
strcmp
(
ext
,
".ps"
))
CreateOutputFile
(
name
,
FORMAT_EPS
);
else
if
(
!
strcmp
(
ext
,
".eps"
))
CreateOutputFile
(
name
,
FORMAT_EPS
);
else
if
(
!
strcmp
(
ext
,
".eps"
))
CreateOutputFile
(
name
,
FORMAT_EPS
);
else
if
(
!
strcmp
(
ext
,
".xpm"
))
CreateOutputFile
(
name
,
FORMAT_XPM
);
else
if
(
!
strcmp
(
ext
,
".ppm"
))
CreateOutputFile
(
name
,
FORMAT_PPM
);
else
if
(
!
strcmp
(
ext
,
".ppm"
))
CreateOutputFile
(
name
,
FORMAT_PPM
);
else
if
(
!
strcmp
(
ext
,
".yuv"
))
CreateOutputFile
(
name
,
FORMAT_YUV
);
else
if
(
!
strcmp
(
ext
,
".yuv"
))
CreateOutputFile
(
name
,
FORMAT_YUV
);
else
if
(
!
strcmp
(
ext
,
".gref"
))
CreateOutputFile
(
name
,
FORMAT_GREF
);
else
if
(
!
strcmp
(
ext
,
".gref"
))
CreateOutputFile
(
name
,
FORMAT_GREF
);
...
@@ -63,7 +64,11 @@ void CreateOutputFile (char *name, int format) {
...
@@ -63,7 +64,11 @@ void CreateOutputFile (char *name, int format) {
case
FORMAT_GEO
:
case
FORMAT_GEO
:
Print_Geo
(
&
M
,
name
);
Print_Geo
(
&
M
,
name
);
break
;
break
;
case
FORMAT_OPT
:
Print_Options
(
0
,
GMSH_FULLRC
,
name
);
break
;
case
FORMAT_MSH
:
case
FORMAT_MSH
:
Print_Mesh
(
&
M
,
name
,
FORMAT_MSH
);
Print_Mesh
(
&
M
,
name
,
FORMAT_MSH
);
break
;
break
;
...
...
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