Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
a8de7cc8
Commit
a8de7cc8
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
nicer
parent
3bfe7253
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorial/t4.geo
+6
-10
6 additions, 10 deletions
tutorial/t4.geo
with
6 additions
and
10 deletions
tutorial/t4.geo
+
6
−
10
View file @
a8de7cc8
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment