Skip to content
Snippets Groups Projects
Commit 19c56a58 authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

add "General.MeshDiscrete" option

parent 00db1683
Branches
Tags
No related merge requests found
...@@ -652,6 +652,8 @@ StringXNumber GeneralOptions_Number[] = { ...@@ -652,6 +652,8 @@ StringXNumber GeneralOptions_Number[] = {
"Horizontal position (in pixels) of the (detached) menu tree" }, "Horizontal position (in pixels) of the (detached) menu tree" },
{ F|S, "MenuPositionY" , opt_general_menu_position1 , 400. , { F|S, "MenuPositionY" , opt_general_menu_position1 , 400. ,
"Vertical position (in pixels) of the (detached) menu tree" }, "Vertical position (in pixels) of the (detached) menu tree" },
{ F|O, "MeshDiscrete" , opt_general_meshdiscrete , 0. ,
"Mesh discrete surfaces through automatic parametrization (MUMPS required for efficiency) (0)" },
{ F|O, "MessageFontSize" , opt_general_message_fontsize , -1. , { F|O, "MessageFontSize" , opt_general_message_fontsize , -1. ,
"Size of the font in the message window (-1=automatic)" }, "Size of the font in the message window (-1=automatic)" },
{ F|S, "MessageHeight" , opt_general_message_size , 300. , { F|S, "MessageHeight" , opt_general_message_size , 300. ,
......
...@@ -2255,6 +2255,14 @@ double opt_general_system_menu_bar(OPT_ARGS_NUM) ...@@ -2255,6 +2255,14 @@ double opt_general_system_menu_bar(OPT_ARGS_NUM)
return CTX::instance()->systemMenuBar; return CTX::instance()->systemMenuBar;
} }
double opt_general_meshdiscrete(OPT_ARGS_NUM)
{
if(action & GMSH_SET){
CTX::instance()->meshDiscrete = (int)val;
}
return CTX::instance()->meshDiscrete;
}
double opt_general_message_size(OPT_ARGS_NUM) double opt_general_message_size(OPT_ARGS_NUM)
{ {
if(action & GMSH_SET){ if(action & GMSH_SET){
......
...@@ -156,6 +156,7 @@ double opt_general_polygon_offset_always(OPT_ARGS_NUM); ...@@ -156,6 +156,7 @@ double opt_general_polygon_offset_always(OPT_ARGS_NUM);
double opt_general_polygon_offset_factor(OPT_ARGS_NUM); double opt_general_polygon_offset_factor(OPT_ARGS_NUM);
double opt_general_polygon_offset_units(OPT_ARGS_NUM); double opt_general_polygon_offset_units(OPT_ARGS_NUM);
double opt_general_system_menu_bar(OPT_ARGS_NUM); double opt_general_system_menu_bar(OPT_ARGS_NUM);
double opt_general_meshdiscrete(OPT_ARGS_NUM);
double opt_general_message_size(OPT_ARGS_NUM); double opt_general_message_size(OPT_ARGS_NUM);
double opt_general_message_fontsize(OPT_ARGS_NUM); double opt_general_message_fontsize(OPT_ARGS_NUM);
double opt_general_detached_menu(OPT_ARGS_NUM); double opt_general_detached_menu(OPT_ARGS_NUM);
......
...@@ -5,9 +5,11 @@ lc = 1e-2; ...@@ -5,9 +5,11 @@ lc = 1e-2;
Point(1) = {0, 0, 0, lc}; Point(1) = {0, 0, 0, lc};
Point(4) = {0, .3, 0, lc} ; Point(4) = {0, .3, 0, lc} ;
Line(1) = {1,11} ; //Line(1) = {1,11} ;
Line(3) = {14,4} ; Line(3) = {14,4} ;
Line(4) = {4,1} ; Line(4) = {4,1} ;
Line Loop(5) = {-4,-1,-14,-3} ; //Line Loop(5) = {-4,-1,-14,-3} ;
Plane Surface(6) = {5} ; //Plane Surface(6) = {5} ;
//+
//Line(17) = {4, 14};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment