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

3d + plugin tutorial

parent 30114153
No related branches found
No related tags found
No related merge requests found
/*********************************************************************
*
* Gmsh tutorial 9
*
* Post-Processing, Plugins
*
*********************************************************************/
// Plugins can be added to Gmsh in order to extend its
// capabilities. For example, post-processing plugins can modify a
// view, or create a new view based on previously loaded views. Three
// default plugins are available at the time of writing: CutMap,
// CutPlane and CutSphere. These plugins are just examples of how
// plugins (will) work.
// Let's load a three dimension scalar view
Merge "view3.pos" ;
// Plugins can be controlled as other options in Gmsh. For example,
// the CutMap plugin extracts an isovalue surface from a 3D scalar
// view. The plugin can either be called from the graphical interface
// (right click on the view button, then Plugins->CutMap), or from
// the command file, as is shown below.
// This sets the optional parameter A of the CutMap plugin to the
// value 0.34 (see the About in the graphical interface for the
// documentation of each plugin), and runs the plugin:
Plugin(CutMap).A = 0.67 ;
Plugin(CutMap).Run ;
Plugin(CutPlane).A = 0 ;
Plugin(CutPlane).B = 0.2 ;
Plugin(CutPlane).C = 1 ;
Plugin(CutPlane).D = 0 ;
Plugin(CutPlane).Run ;
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment