diff --git a/tutorial/t4.geo b/tutorial/t4.geo index a13d59fb1bb41c95a534aa4f7536536ddbbb9df5..fc9f0ce8937138acc090598e9a6bd56452c9a77a 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 }; }