[Gmsh] Cutting plots of iso surfaces

Christophe Geuzaine c.geuzaine at ulg.ac.be
Fri Mar 4 05:47:23 CET 2005


Daryl Van Vorst wrote:
> Hi,
> 
> First, I should start off with (as so many have before): Wow! Great work
> guys!
> 
> Not sure if this is really a gmsh or getdp question. Apologies if it's
> in the wrong list.
> 
> I get a nice iso surface plot from a getdp PostOperation like this:
> 
> PostOperation Map_phi UsingPost MagSta_phi_res {
>   Print[ phi, OnElementsOf Domain, File "pm_phi.pos" ];
> }
> 
> But some of the surfaces are closed and so you can't see what's under
> them. Is there a way to saw off (for lack of a better term) parts of the
> plot like you might saw an engine in half to show it's inner workings?
> 

Sure: use "Tools->Clipping planes" in Gmsh to interactively clip the 
post-processing view(s) and/or the geometry and/or the mesh.

If you want to actually cut the view (i.e., generate a new view that
contains only a subset of the elements), use "View->Plugins->Cut Plane" 
and set "Extract volume" to +1 or -1.

Take care,

Christophe

-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org