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

view::write

parent 5baffeb8
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,10 @@ int main(int argc, char **argv) ...@@ -83,6 +83,10 @@ int main(int argc, char **argv)
{"A multi-step list-based view"}, {"A multi-step list-based view"},
{"Align", "Center", "Font", "Helvetica"}); {"Align", "Center", "Font", "Helvetica"});
// Views can exported as files with the `write' function:
// gmsh::view::write(v1, "v1.pos"); // as a list-based view
// gmsh::view::write(v1, "v1.msh"); // converted to a model-based view
// High-order datasets can be provided by setting the interpolation matrices // High-order datasets can be provided by setting the interpolation matrices
// explicitly. Let's create a second view with second order interpolation on a // explicitly. Let's create a second view with second order interpolation on a
// 4-node quadrangle. // 4-node quadrangle.
......
...@@ -75,6 +75,10 @@ gmsh.view.addListDataString(v1, [0.5, 1.5, 0.], ...@@ -75,6 +75,10 @@ gmsh.view.addListDataString(v1, [0.5, 1.5, 0.],
["A multi-step list-based view"], ["A multi-step list-based view"],
["Align", "Center", "Font", "Helvetica"]) ["Align", "Center", "Font", "Helvetica"])
# Views can exported as files with the `write' function:
# gmsh.view.write(v1, "v1.pos") # as a list-based view
# gmsh.view.write(v1, "v1.msh") # converted to a model-based view
# High-order datasets can be provided by setting the interpolation matrices # High-order datasets can be provided by setting the interpolation matrices
# explicitly. Let's create a second view with second order interpolation on # explicitly. Let's create a second view with second order interpolation on
# a 4-node quadrangle. # a 4-node quadrangle.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment