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

tweak

parent adba54e9
Branches
Tags
No related merge requests found
......@@ -2881,11 +2881,6 @@ graphicWindow::graphicWindow(bool main, int numTiles, bool detachTree)
browser->type(FL_MULTI_BROWSER);
browser->callback(message_browser_cb, this);
browser->scrollbar_size(std::max(10, FL_NORMAL_SIZE - 2)); // thinner scrollbars
#if 1
// scrollbars are buggy when tiles are resized; hiding the horizontal one
// somewhat alleviates the problem
browser->has_scrollbar(Fl_Browser_::VERTICAL);
#endif
}
else{
browser = 0;
......
......@@ -13,7 +13,7 @@ DefineConstant
lb = {1, Label "Infinite box width", Path "Parameters"},
left = {1, Choices{0,1}, Label "Terminals on the left?", Path "Parameters"}
macro = {"title.script", Label "Add title", Path "Macros",
Macro "Gmsh", AutoCheck "0", Highlight "Turquoise"},
Macro "Gmsh", AutoCheck "0" /*, Highlight "Turquoise"*/ },
showLines = {Geometry.Lines, Choices {0,1}, Label "Show lines?", Path "Options",
GmshOption "Geometry.Lines", AutoCheck "0"}
];
......
......@@ -2,7 +2,7 @@
*
* Gmsh tutorial 3
*
* Extruded meshes, options
* Extruded meshes, parameters, options
*
*********************************************************************/
......@@ -34,9 +34,15 @@ Extrude { {0,1,0} , {-0.1,0,0.1} , -Pi/2 } {
}
// Note that a translation ({-2*h,0,0}) and a rotation ({1,0,0},
// {0,0.15,0.25}, Pi/2) can also be combined:
// {0,0.15,0.25}, Pi/2) can also be combined. Here the angle is
// specified as a 'parameter', using the 'DefineConstant' syntax.
// This parameter can be modified insteractively in the GUI, and
// can be exchanged with other codes using the ONELAB framework:
out[] = Extrude { {-2*h,0,0}, {1,0,0} , {0,0.15,0.25} , Pi/2 } {
DefineConstant[ angle = {90, Min 0, Max 120, Step 1,
Label "Extrusion angle", Path "Parameters"} ];
out[] = Extrude { {-2*h,0,0}, {1,0,0} , {0,0.15,0.25} , angle * Pi / 180 } {
Surface{144}; Layers{10}; Recombine;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment