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

Following suggestions by colleagues :

- Cosmetic changes in 'File->Save as' menu
- 'flattened geometry' -> 'unrolled geometry'
parent a8739195
No related branches found
No related tags found
No related merge requests found
// $Id: GetOptions.cpp,v 1.46 2002-03-31 00:50:39 geuzaine Exp $
// $Id: GetOptions.cpp,v 1.47 2002-04-24 22:12:43 geuzaine Exp $
#include <unistd.h>
#include "Gmsh.h"
......@@ -39,7 +39,7 @@ char gmsh_email[] = "Mailing list : gmsh@geuz.org" ;
void Print_Usage(char *name){
Msg(DIRECT, "Usage: %s [options] [files]", name);
Msg(DIRECT, "Geometry options:");
Msg(DIRECT, " -0 parse input files, output flattened geometry, and exit");
Msg(DIRECT, " -0 parse input files, output unrolled geometry, and exit");
Msg(DIRECT, "Mesh options:");
Msg(DIRECT, " -1, -2, -3 perform batch 1D, 2D and 3D mesh generation");
Msg(DIRECT, " -saveall save all elements (discard physical group definitions)");
......
// $Id: GUI.cpp,v 1.165 2002-04-23 23:07:23 geuzaine Exp $
// $Id: GUI.cpp,v 1.166 2002-04-24 22:12:43 geuzaine Exp $
// To make the interface as visually consistent as possible, please:
// - use the IW, BB, BH, BW and WB values
......@@ -56,28 +56,28 @@ Fl_Menu_Item m_menubar_table[] = {
{"Save as", 0, 0, 0, FL_MENU_DIVIDER|FL_SUBMENU},
{"By extension...", FL_CTRL+'e', (Fl_Callback *)file_save_as_auto_cb, 0, FL_MENU_DIVIDER},
{"Geometry", 0, 0, 0, FL_SUBMENU},
{"Gmsh flattened geometry (geo)...", 0, (Fl_Callback *)file_save_as_geo_cb, 0},
{"Gmsh current options (opt)...", 0, (Fl_Callback *)file_save_as_geo_options_cb, 0},
{"Gmsh unrolled geometry (geo)...", 0, (Fl_Callback *)file_save_as_geo_cb, 0},
{0},
{"Mesh", 0, 0, 0, FL_SUBMENU},
{"Gmsh mesh format (msh)...", 0, (Fl_Callback *)file_save_as_msh_cb, 0},
{"Gmsh mesh format, all elements...", 0, (Fl_Callback *)file_save_as_msh_all_cb, 0},
{"Universal mesh format (unv)...", 0, (Fl_Callback *)file_save_as_unv_cb, 0},
{"Gref mesh format (gref)...", 0, (Fl_Callback *)file_save_as_gref_cb, 0},
{"Vrml surface mesh (wrl)...", 0, (Fl_Callback *)file_save_as_vrml_cb, 0},
{"Gmsh (msh)...", 0, (Fl_Callback *)file_save_as_msh_cb, 0},
{"Gmsh all elements...", 0, (Fl_Callback *)file_save_as_msh_all_cb, 0},
{"GREF (gref)...", 0, (Fl_Callback *)file_save_as_gref_cb, 0},
{"I-DEAS universal file (unv)...", 0, (Fl_Callback *)file_save_as_unv_cb, 0},
{"VRML lines/surfaces (wrl)...", 0, (Fl_Callback *)file_save_as_vrml_cb, 0},
{0},
{"Image", 0, 0, 0, FL_SUBMENU},
{"PostScript, fast (ps)...", 0, (Fl_Callback *)file_save_as_ps_simple_cb, 0},
{"PostScript, accurate...", 0, (Fl_Callback *)file_save_as_ps_accurate_cb, 0},
{"Jpeg (jpg)...", 0, (Fl_Callback *)file_save_as_jpeg_cb, 0},
{"LaTeX, PS part, fast...", 0, (Fl_Callback *)file_save_as_pstex_simple_cb, 0},
{"LaTeX, PS part, accurate...", 0, (Fl_Callback *)file_save_as_pstex_accurate_cb, 0},
{"LaTeX, Jpeg part...", 0, (Fl_Callback *)file_save_as_jpegtex_cb, 0},
{"LaTeX, TeX part (tex)...", 0, (Fl_Callback *)file_save_as_tex_cb, 0},
{"GIF (gif)...", 0, (Fl_Callback *)file_save_as_gif_cb, 0},
{"GIF, dithered...", 0, (Fl_Callback *)file_save_as_gif_dithered_cb, 0},
{"GIF, transparent...", 0, (Fl_Callback *)file_save_as_gif_transparent_cb, 0},
{"GIF dithered...", 0, (Fl_Callback *)file_save_as_gif_dithered_cb, 0},
{"GIF transparent...", 0, (Fl_Callback *)file_save_as_gif_transparent_cb, 0},
{"JPEG (jpg)...", 0, (Fl_Callback *)file_save_as_jpeg_cb, 0},
{"PostScript fast (ps)...", 0, (Fl_Callback *)file_save_as_ps_simple_cb, 0},
{"PostScript accurate...", 0, (Fl_Callback *)file_save_as_ps_accurate_cb, 0},
{"PPM (ppm)...", 0, (Fl_Callback *)file_save_as_ppm_cb, 0},
{"LaTeX JPEG...", 0, (Fl_Callback *)file_save_as_jpegtex_cb, 0},
{"LaTeX PostScript fast...", 0, (Fl_Callback *)file_save_as_pstex_simple_cb, 0},
{"LaTeX PostScript accurate...", 0, (Fl_Callback *)file_save_as_pstex_accurate_cb, 0},
{"LaTeX TeX (tex)...", 0, (Fl_Callback *)file_save_as_tex_cb, 0},
{"UCB YUV (yuv)...", 0, (Fl_Callback *)file_save_as_yuv_cb, 0},
{0},
{0},
......
GMSH FREQUENTLY ASKED QUESTIONS ($Date: 2002-03-05 00:28:04 $)
GMSH FREQUENTLY ASKED QUESTIONS ($Date: 2002-04-24 22:12:43 $)
1. GENERAL
==========
......@@ -74,7 +74,7 @@ entities (points, lines and surfaces) each time a transformation
command is issued. This can slow down things a lot if many
transformations are performed. There are two solutions to this
problem:
- you may save the flattened geometry in another file (e.g. with
- you may save the unrolled geometry in another file (e.g. with
gmsh file.geo -0 > flat.geo), and use this new file for subsequent
computations;
- you may set the 'Geometry.AutoCoherence' option to 0. This will
......@@ -103,10 +103,10 @@ Send us your geometry, and we will investigate. Please keep the
following in mind though: 2D (surface) meshes are generated by
projecting a 2D mesh in the mean plane of the surface. This gives nice
results only if the surface curvature is small enough. Otherwise you
_have_ to cut the surface in pieces. For example, using use half
circles to define a cylinder will fail with the unstructured algorithm
(you should define arcs with angles smaller than Pi, and thus
define the cylinder with at least three patch surfaces).
_have_ to cut the surface in pieces. For example, using half circles
to define a cylinder will fail with the unstructured algorithm (you
should define arcs with angles smaller than Pi, and thus define the
cylinder with at least three patch surfaces).
5.3) What should I do when the 3D unstructured algorithm fails?
......
......@@ -100,7 +100,7 @@ either interactively or through the input ascii files.
.SH GEOMETRY OPTIONS
.TP 4
.B \-0
parse all input files, output flattened geometry, and exit.
parse all input files, output unrolled geometry, and exit.
.\" ======================================================================
.SH MESH OPTIONS
.TP 4
......
$Id: README,v 1.14 2001-08-18 12:43:41 geuzaine Exp $
$Id: README,v 1.15 2002-04-24 22:12:43 geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
......@@ -95,10 +95,10 @@ all the other views, select the 'Apply next changes to all views' or
[NOTE: All the options specified interactively can also be directly
specified in the ascii input files. All available options, with their
current values, can be saved into a file by selecting 'File->Save
as->GEO complete options', or simply viewed by pressing the '?' button
in the status bar. To save the current options as your default
preferences for all future Gmsh sessions, use the 'Options->Save
options now' menu.]
as->Geometry->Gmsh current options', or simply viewed by pressing the
'?' button in the status bar. To save the current options as your
default preferences for all future Gmsh sessions, use the
'Options->Save options now' menu.]
OK, that's all, folks. Enjoy the tutorial.
......
......@@ -57,8 +57,8 @@ Characteristic Length{6,22,2,3,16,12} = lc * 2 ;
// If the transformation tools are handy to create complex geometries,
// it is sometimes useful to generate the flat geometry, consisting
// only of the explicit list elementary entities. This can be achieved
// by selecting the 'File->Save as->GEO flattened geometry' menu or
// by typing
// by selecting the 'File->Save as->Geometry->Gmsh unrolled geometry'
// menu or by typing
//
// > gmsh t2.geo -0
//
......
......@@ -74,7 +74,7 @@ Geometry.Color.Surfaces = Geometry.Color.Points;
// A click on the '?' button in the status bar of the graphic window
// will dump all current options to the terminal. To save all
// available options to a file, use the 'File->Save as->GEO complete
// options' menu. To save the current options as the default options
// for all future Gmsh sessions, use the 'Options->Save options now'
// menu.
// available options to a file, use the 'File->Save as->Geometry->Gmsh
// current options' menu. To save the current options as the default
// options for all future Gmsh sessions, use the 'Options->Save
// options now' menu.
......@@ -17,7 +17,7 @@ Include "view4.pos" ;
// Some general options are set (all the options specified
// interactively can be directly specified in the ascii input
// files. The current options can be saved into a file by selecting
// 'File->Save as->GEO complete options').
// 'File->Save as->Geometry->Gmsh current options').
General.Trackball = 0 ;
General.RotationX = 0 ;
......
......@@ -23,7 +23,7 @@
<H1>README 1/10</H1>
[<A HREF="#top">top</A>][prev][<A HREF="#file2">next</A>]
<PRE>
$Id: tutorial.html,v 1.32 2001-12-06 10:34:04 geuzaine Exp $
$Id: tutorial.html,v 1.33 2002-04-24 22:12:43 geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
......@@ -120,10 +120,10 @@ all the other views, select the 'Apply next changes to all views' or
[NOTE: All the options specified interactively can also be directly
specified in the ascii input files. All available options, with their
current values, can be saved into a file by selecting 'File-&gt;Save
as-&gt;GEO complete options', or simply viewed by pressing the '?' button
in the status bar. To save the current options as your default
preferences for all future Gmsh sessions, use the 'Options-&gt;Save
options now' menu.]
as-&gt;Geometry-&gt;Gmsh current options', or simply viewed by pressing the
'?' button in the status bar. To save the current options as your
default preferences for all future Gmsh sessions, use the
'Options-&gt;Save options now' menu.]
OK, that's all, folks. Enjoy the tutorial.
......@@ -304,8 +304,8 @@ Characteristic Length{6,22,2,3,16,12} = lc * 2 ;
<I><FONT COLOR="#B22222">// If the transformation tools are handy to create complex geometries,
</FONT></I><I><FONT COLOR="#B22222">// it is sometimes useful to generate the flat geometry, consisting
</FONT></I><I><FONT COLOR="#B22222">// only of the explicit list elementary entities. This can be achieved
</FONT></I><I><FONT COLOR="#B22222">// by selecting the 'File-&gt;Save as-&gt;GEO flattened geometry' menu or
</FONT></I><I><FONT COLOR="#B22222">// by typing
</FONT></I><I><FONT COLOR="#B22222">// by selecting the 'File-&gt;Save as-&gt;Geometry-&gt;Gmsh unrolled geometry'
</FONT></I><I><FONT COLOR="#B22222">// menu or by typing
</FONT></I><I><FONT COLOR="#B22222">//
</FONT></I><I><FONT COLOR="#B22222">// &gt; gmsh t2.geo -0
</FONT></I><I><FONT COLOR="#B22222">//
......@@ -413,10 +413,10 @@ Geometry.Color.Surfaces = Geometry.Color.Points;
</FONT></I>
<I><FONT COLOR="#B22222">// A click on the '?' button in the status bar of the graphic window
</FONT></I><I><FONT COLOR="#B22222">// will dump all current options to the terminal. To save all
</FONT></I><I><FONT COLOR="#B22222">// available options to a file, use the 'File-&gt;Save as-&gt;GEO complete
</FONT></I><I><FONT COLOR="#B22222">// options' menu. To save the current options as the default options
</FONT></I><I><FONT COLOR="#B22222">// for all future Gmsh sessions, use the 'Options-&gt;Save options now'
</FONT></I><I><FONT COLOR="#B22222">// menu.
</FONT></I><I><FONT COLOR="#B22222">// available options to a file, use the 'File-&gt;Save as-&gt;Geometry-&gt;Gmsh
</FONT></I><I><FONT COLOR="#B22222">// current options' menu. To save the current options as the default
</FONT></I><I><FONT COLOR="#B22222">// options for all future Gmsh sessions, use the 'Options-&gt;Save
</FONT></I><I><FONT COLOR="#B22222">// options now' menu.
</FONT></I></PRE>
<HR>
<A NAME="file5">
......@@ -1073,7 +1073,7 @@ Include &quot;view4.pos&quot; ;
<I><FONT COLOR="#B22222">// Some general options are set (all the options specified
</FONT></I><I><FONT COLOR="#B22222">// interactively can be directly specified in the ascii input
</FONT></I><I><FONT COLOR="#B22222">// files. The current options can be saved into a file by selecting
</FONT></I><I><FONT COLOR="#B22222">// 'File-&gt;Save as-&gt;GEO complete options').
</FONT></I><I><FONT COLOR="#B22222">// 'File-&gt;Save as-&gt;Geometry-&gt;Gmsh current options').
</FONT></I>
General.Trackball = 0 ;
General.RotationX = 0 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment