From 0dd85feb269fd938ba80f03ec7c22d2f23976a54 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 20 Jun 2015 07:21:37 +0000 Subject: [PATCH] --- tutorial/t4.geo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tutorial/t4.geo b/tutorial/t4.geo index a13d59fb1b..fc9f0ce893 100644 --- a/tutorial/t4.geo +++ b/tutorial/t4.geo @@ -2,7 +2,7 @@ * * Gmsh tutorial 4 * - * Built-in functions, holes, strings, mesh color + * Built-in functions, surface holes, annotations, mesh colors * *********************************************************************/ @@ -76,7 +76,7 @@ Plane Surface(24) = {23,21}; // boundaries of the holes. // Finally, we can add some comments by embedding a post-processing view -// containing some strings, and change the color of some mesh entities: +// containing some strings: View "comments" { // Add a text string in window coordinates, 10 pixels from the left and 10 @@ -106,10 +106,13 @@ View "comments" { }; // Views and geometrical entities can be made to respond to double-click events: + View[0].DoubleClickedCommand = "Printf('View[0] has been double-clicked!');"; Geometry.DoubleClickedLineCommand = "Printf('Line %g has been double-clicked!', Geometry.DoubleClickedEntityTag);"; +// We can also change the color of some mesh entities: + Color Grey50{ Surface{ 22 }; } Color Purple{ Surface{ 24 }; } Color Red{ Line{ 1:14 }; } -- GitLab