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

nicer

parent 3bfe7253
No related branches found
No related tags found
No related merge requests found
...@@ -80,21 +80,17 @@ Plane Surface(24) = {23,21}; ...@@ -80,21 +80,17 @@ Plane Surface(24) = {23,21};
View "comments" { View "comments" {
// Add a text string in window coordinates, 10 pixels from the left and 10 // Add a text string in window coordinates, 10 pixels from the left and 10
// pixels from the bottom: // pixels from the bottom, using the StrCat function to concatenate strings:
T2(10, -10, 0){ "Copyright (C) My Company" }; T2(10, -10, 0){ StrCat("Created on ", Today, " with Gmsh") };
// Add another text string in window coordinates, 10 pixels from the left and // Add a text string in model coordinates centered at (X,Y,Z) = (0, 0.11, 0):
// 15 pixels from the top, using the StrCat() function to concatenate a string T3(0, 0.11, 0, TextAttributes("Align", "Center", "Font", "Helvetica")){ "Hole" };
// with the current date:
T2(10, 15, 0){ StrCat("File created on ", Today) };
// Add a text string in model coordinates at (X,Y,Z) = (0, 0.11, 0):
T3(0, 0.11, 0, 0){ "Hole" };
// If a string starts with `file://', the rest is interpreted as an image // If a string starts with `file://', the rest is interpreted as an image
// file, whose size and orientation can be specified after a `@' symbol: // file, whose size and orientation can be specified after a `@' symbol:
T3(-0.01, 0.09, 0, 0){ "file://image.png@0.02x0" }; T3(-0.01, 0.09, 0, 0){ "file://image.png@0.02x0" };
T2(195, -7, 0){ "file://image.png@20x0" }; T3(-0.01, 0.09, 0, 0){ "file://image.png@0.02x0,0,1,0,0,0,1" };
T2(350, -7, 0){ "file://image.png@20x0" };
}; };
// Views and geometrical entities can be made to respond to double-click events: // Views and geometrical entities can be made to respond to double-click events:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment