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
1924ba98
Commit
1924ba98
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Add the string and mesh color examples in the tutorial
parent
a44387f8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorial/t4.geo
+25
-1
25 additions, 1 deletion
tutorial/t4.geo
tutorial/tutorial.html
+26
-2
26 additions, 2 deletions
tutorial/tutorial.html
with
51 additions
and
3 deletions
tutorial/t4.geo
+
25
−
1
View file @
1924ba98
...
...
@@ -2,7 +2,7 @@
*
* Gmsh tutorial 4
*
* Built-in functions, Holes
* Built-in functions, Holes
, Strings, Mesh color
*
*********************************************************************/
...
...
@@ -142,3 +142,27 @@ Plane Surface(24) = {23,21};
Physical
Surface
(
1
)
=
{
22
};
Physical
Surface
(
2
)
=
{
24
};
// You can add some comments by simply embedding a post-processing
// view with some strings...
View
"comments"
{
T2
(
10
,
15
,
0
){
"File created on Fri Oct 18 23:50:20 2002"
};
T2
(
10
,
-
10
,
0
){
"Copyright (C) DGR"
};
T3
(
0
,
0.11
,
0
,
0
){
"Hole"
};
};
// This will put the strings
// - "File ..." 10 pixels from the left and 15 pixels from the top of
// the graphic window;
// - "Copyright ..." 10 pixels from the left and 10 pixels from the
// bottom of the graphic window; and
// - "Hole" in your model, at (x,y,z)=(0.0,0.11,0.0).
// You can also change the color of the mesh entities for each
// curve/surface:
Color
White
{
Surface
{
22
}
;
}
Color
Purple
{
Surface
{
24
}
;
}
Color
Red
{
Line
{
1
:
14
}
;
}
Color
Yellow
{
Line
{
15
:
20
}
;
}
This diff is collapsed.
Click to expand it.
tutorial/tutorial.html
+
26
−
2
View file @
1924ba98
...
...
@@ -23,7 +23,7 @@
<H1>
README 1/10
</H1>
[
<A
HREF=
"#top"
>
top
</A>
][prev][
<A
HREF=
"#file2"
>
next
</A>
]
<PRE>
$Id: tutorial.html,v 1.3
7
2003-02-2
4 20:28:3
6 geuzaine Exp $
$Id: tutorial.html,v 1.3
8
2003-02-2
7 18:29:2
6 geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
...
...
@@ -425,7 +425,7 @@ Geometry.Color.Surfaces = Geometry.Color.Points;
*
* Gmsh tutorial 4
*
* Built-in functions, Holes
* Built-in functions, Holes
, Strings, Mesh color
*
*********************************************************************/
</FONT></I>
...
...
@@ -565,6 +565,30 @@ Plane Surface(24) = {23,21};
Physical Surface(1) = {22};
Physical Surface(2) = {24};
<I><FONT
COLOR=
"#B22222"
>
// You can add some comments by simply embedding a post-processing
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// view with some strings...
</FONT></I>
View
"
comments
"
{
T2(10,15,0){
"
File created on Fri Oct 18 23:50:20 2002
"
};
T2(10,-10,0){
"
Copyright (C) DGR
"
};
T3(0,0.11,0,0){
"
Hole
"
};
};
<I><FONT
COLOR=
"#B22222"
>
// This will put the strings
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// -
"
File ...
"
10 pixels from the left and 15 pixels from the top of
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// the graphic window;
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// -
"
Copyright ...
"
10 pixels from the left and 10 pixels from the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// bottom of the graphic window; and
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// -
"
Hole
"
in your model, at (x,y,z)=(0.0,0.11,0.0).
</FONT></I>
<I><FONT
COLOR=
"#B22222"
>
// You can also change the color of the mesh entities for each
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// curve/surface:
</FONT></I>
Color White{ Surface{ 22 } ; }
Color Purple{ Surface{ 24 } ; }
Color Red{ Line{ 1:14 } ; }
Color Yellow{ Line{ 15:20 } ; }
</PRE>
<HR>
<A
NAME=
"file6"
>
...
...
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