[Gmsh] Hide and show entities

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Apr 29 10:37:48 CEST 2011


On 28/04/11 15:09, Zenker, Dr. Matthias wrote:
> Hi,
>
> I have a mesh file and want to visualize only selected entities in gmsh.
> In the GUI, I can dio that using Tools->Visibiliy and selecting the
> entities I want to see. Now I would like to do that automatically at
> startup. I have written a small geo file with the following commands:
>
> Merge "Myfile.msh";
> Hide "*";
> Show { Surface {10}; }
>
> Now the problem is that Surface 10 is not shown, whereas when I write
>
> Merge "Myfile.msh";
> Hide { Surface {10,12}; }
> Show { Surface {10}; }
>
> surface 12 is hidden, and surface 10 is shown, as well as all the other
> surfaces in the file. If I want to see only surface 10 that way, I would
> have to list all other surfaces in the Hide command.
>
> Is there another way to hide all entities except one?
>

Hi Matthias - it's actually a small bug in the code. It should be fixed 
in tomorrow's nighty builds.

Thanks for the report,

Christophe

>
> Thank you for a hint,
>
> Matthias
>
>
> ----------------------------------------------------------------
> ERBE Elektromedizin GmbH
> Dr.rer.nat. Matthias Zenker
> Dipl. Phys.
> Grundlagenentwicklung / Fundamental Development
> Waldhoernlestrasse 17
> 72072 Tuebingen
> Germany
> Phone + 49 (0) 7071 755 - 226
> Fax + 49 (0) 7071 755 - 5226
> E-Mail: <_mailto:Matthias.Zenker at erbe-med.com_>
> URL: _http://www.ERBE-med.com_
> ----------------------------------------------------------------
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine