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

newpt[] -> tmp[] to avoid confusion
parent a358bf20
Branches
No related tags found
No related merge requests found
...@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment