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
5d099ddf
Commit
5d099ddf
authored
21 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
newpt[] -> tmp[] to avoid confusion
parent
a358bf20
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorial/t2.geo
+4
-4
4 additions, 4 deletions
tutorial/t2.geo
with
4 additions
and
4 deletions
tutorial/t2.geo
+
4
−
4
View file @
5d099ddf
...
@@ -27,7 +27,7 @@ Translate {-0.05,0,0} { Point{3}; }
...
@@ -27,7 +27,7 @@ Translate {-0.05,0,0} { Point{3}; }
// The resulting point can also be duplicated and translated by 0.1
// The resulting point can also be duplicated and translated by 0.1
// along the y axis:
// along the y axis:
newpt
[]
=
Translate
{
0
,
0.1
,
0
}
{
Duplicata
{
Point
{
3
};
}
}
;
tmp
[]
=
Translate
{
0
,
0.1
,
0
}
{
Duplicata
{
Point
{
3
};
}
}
;
// In this case, we assign the result of the Translate command to a
// In this case, we assign the result of the Translate command to a
// list, so that we can retrieve the number of the newly created point
// list, so that we can retrieve the number of the newly created point
...
@@ -41,8 +41,8 @@ newpt[] = Translate {0,0.1,0} { Duplicata{ Point{3}; } } ;
...
@@ -41,8 +41,8 @@ newpt[] = Translate {0,0.1,0} { Duplicata{ Point{3}; } } ;
h
=
0.12
;
h
=
0.12
;
Extrude
Surface
{
6
,
{
0
,
0
,
h
}
};
Extrude
Surface
{
6
,
{
0
,
0
,
h
}
};
Line
(
7
)
=
{
3
,
newpt
[
0
]};
Line
(
7
)
=
{
3
,
tmp
[
0
]};
Line
(
8
)
=
{
newpt
[
0
],
5
};
Line
(
8
)
=
{
tmp
[
0
],
5
};
Line
Loop
(
10
)
=
{
5
,
-
8
,
-
7
,
3
};
Line
Loop
(
10
)
=
{
5
,
-
8
,
-
7
,
3
};
Plane
Surface
(
11
)
=
{
10
};
Plane
Surface
(
11
)
=
{
10
};
...
@@ -53,7 +53,7 @@ Extrude Surface { 11, {0, 0, h} };
...
@@ -53,7 +53,7 @@ Extrude Surface { 11, {0, 0, h} };
// elementary entities. The following command permits to manually
// elementary entities. The following command permits to manually
// specify a characteristic length for some of the new points:
// specify a characteristic length for some of the new points:
Characteristic
Length
{
newpt
[
0
],
22
,
2
,
3
,
16
,
12
}
=
lc
*
2
;
Characteristic
Length
{
tmp
[
0
],
22
,
2
,
3
,
16
,
12
}
=
lc
*
2
;
// Note that, if the transformation tools are handy to create complex
// Note that, if the transformation tools are handy to create complex
// geometries, it is also sometimes useful to generate the `flat'
// geometries, it is also sometimes useful to generate the `flat'
...
...
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