@c This file was generated by api/gen.py: do not edit manually!

@menu
* Namespace gmsh::
* Namespace gmsh/option::
* Namespace gmsh/model::
* Namespace gmsh/model/mesh::
* Namespace gmsh/model/mesh/field::
* Namespace gmsh/model/geo::
* Namespace gmsh/model/geo/mesh::
* Namespace gmsh/model/occ::
* Namespace gmsh/model/occ/mesh::
* Namespace gmsh/view::
* Namespace gmsh/view/option::
* Namespace gmsh/algorithm::
* Namespace gmsh/plugin::
* Namespace gmsh/graphics::
* Namespace gmsh/fltk::
* Namespace gmsh/parser::
* Namespace gmsh/onelab::
* Namespace gmsh/logger::
@end menu

@node Namespace gmsh, Namespace gmsh/option, , Gmsh application programming interface
@section Namespace @code{gmsh}: top-level functions

@ftable @code
@item gmsh/initialize
Initialize the Gmsh API. This must be called before any call to the other functions in the API. If @code{argc} and @code{argv} (or just @code{argv} in Python or Julia) are provided, they will be handled in the same way as the command line arguments in the Gmsh app. If @code{readConfigFiles} is set, read system Gmsh configuration files (gmshrc and gmsh-options). If @code{run} is set, run in the same way as the Gmsh app, either interactively or in batch mode depending on the command line arguments. If @code{run} is not set, initializing the API sets the options "General.AbortOnError" to 2 and "General.Terminal" to 1.

@table @asis
@item Input:
@code{(argc = 0)}, @code{argv = []} (command line arguments), @code{readConfigFiles = True} (boolean), @code{run = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L76,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L63,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L268,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L56,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L923,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L18,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L17,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L15,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L17,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L74,t5.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L15,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L15,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L13,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L14,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L13,t5.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L14,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L13,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L11,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L11,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L11,t5.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L22,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L27,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L23,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L43,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L28,t5.f90}, ...)
@end table

@item gmsh/isInitialized
Return 1 if the Gmsh API is initialized, and 0 if not.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L83,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L69,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L299,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L72,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L956,Fortran}
@end table

@item gmsh/finalize
Finalize the Gmsh API. This must be called when you are done using the Gmsh API.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L89,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L73,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L315,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L87,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L972,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L174,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L160,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L147,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L173,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L227,t5.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L173,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L152,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L134,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L182,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L221,t5.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L174,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L151,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L138,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L169,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L219,t5.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L176,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L165,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L70,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L183,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L171,t5.f90}, ...)
@end table

@item gmsh/open
Open a file. Equivalent to the @code{File->Open} menu in the Gmsh app. Handling of the file depends on its extension and/or its contents: opening a file with model data will create a new model.

@table @asis
@item Input:
@code{fileName} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L96,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L78,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L330,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L106,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L987,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L27,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L24,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L10,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/flatten2.py#L15,flatten2.py}, @url{@value{GITLAB-PREFIX}/examples/api/flatten.py#L17,flatten.py}, @url{@value{GITLAB-PREFIX}/examples/api/heal.py#L8,heal.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L23,x1.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L10,explore.jl})
@end table

@item gmsh/merge
Merge a file. Equivalent to the @code{File->Merge} menu in the Gmsh app. Handling of the file depends on its extension and/or its contents. Merging a file with model data will add the data to the current model.

@table @asis
@item Input:
@code{fileName} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L103,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L84,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L348,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L125,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1007,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L21,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L37,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L29,t9.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L24,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L33,t17.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t7.py#L20,t7.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L35,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L26,t9.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L21,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L32,t17.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t7.jl#L17,t7.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L32,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L23,t9.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L17,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L28,t17.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t7.f90#L26,t7.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L44,t8.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L31,t9.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L69,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L36,t17.f90})
@end table

@item gmsh/write
Write a file. The export format is determined by the file extension.

@table @asis
@item Input:
@code{fileName} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L108,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L88,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L366,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L142,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1025,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L123,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L142,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L84,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L167,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L221,t5.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L122,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L135,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L79,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L176,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L215,t5.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L121,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L133,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L78,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L162,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L212,t5.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L124,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L150,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L155,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L178,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L167,t5.f90}, ...)
@end table

@item gmsh/clear
Clear all loaded models and post-processing data, and add a new empty model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L113,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L93,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L382,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L156,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1044,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L20,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L166,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L17,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L19,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L127,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/x3d_export.py#L32,x3d_export.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L15,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L16,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L138,x1.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L79,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L68,t13.f90})
@end table

@end ftable

@node Namespace gmsh/option, Namespace gmsh/model, Namespace gmsh, Gmsh application programming interface
@section Namespace @code{gmsh/option}: option handling functions

@ftable @code
@item gmsh/option/setNumber
Set a numerical option to @code{value}. @code{name} is of the form "Category.Option" or "Category[num].Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string), @code{value} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L123,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L99,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L402,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L186,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1060,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L90,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L202,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L96,t6.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L58,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L54,t8.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L84,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L197,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L97,t6.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t7.py#L51,t7.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L47,t8.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L84,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L194,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L96,t6.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t7.jl#L48,t7.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L44,t8.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L28,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L149,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L103,t6.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t7.f90#L56,t7.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L56,t8.f90}, ...)
@end table

@item gmsh/option/getNumber
Get the @code{value} of a numerical option. @code{name} is of the form "Category.Option" or "Category[num].Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L132,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L107,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L425,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L210,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1086,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L138,t8.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L139,t8.py}, @url{@value{GITLAB-PREFIX}/examples/api/test.py#L5,test.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L141,t8.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L149,t8.f90})
@end table

@item gmsh/option/setString
Set a string option to @code{value}. @code{name} is of the form "Category.Option" or "Category[num].Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string), @code{value} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L141,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L115,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L452,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L233,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1112,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L153,t4.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L163,t4.py}, @url{@value{GITLAB-PREFIX}/examples/api/step_header_data.py#L13,step_header_data.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L150,t4.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L165,t4.f90})
@end table

@item gmsh/option/getString
Get the @code{value} of a string option. @code{name} is of the form "Category.Option" or "Category[num].Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L150,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L123,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L475,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L257,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1138,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/test.py#L29,test.py})
@end table

@item gmsh/option/setColor
Set a color option to the RGBA value (@code{r}, @code{g}, @code{b}, @code{a}), where where @code{r}, @code{g}, @code{b} and @code{a} should be integers between 0 and 255. @code{name} is of the form "Category.Color.Option" or "Category[num].Color.Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}. For conciseness "Color." can be ommitted in @code{name}.

@table @asis
@item Input:
@code{name} (string), @code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a = 255} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L161,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L133,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L502,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L286,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1168,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L91,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L61,t8.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L85,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L58,t8.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L85,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L55,t8.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L29,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L64,t8.f90})
@end table

@item gmsh/option/getColor
Get the @code{r}, @code{g}, @code{b}, @code{a} value of a color option. @code{name} is of the form "Category.Color.Option" or "Category[num].Color.Option". Available categories and options are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-options,"Gmsh options" chapter of the Gmsh reference manual}. For conciseness "Color." can be ommitted in @code{name}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L174,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L145,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L533,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L314,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1210,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L97,t3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L90,t3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L90,t3.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L34,t3.f90})
@end table

@item gmsh/option/restoreDefaults
Restore all options to default settings.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L183,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L153,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L574,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L333,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1248,Fortran}
@end table

@end ftable

@node Namespace gmsh/model, Namespace gmsh/model/mesh, Namespace gmsh/option, Gmsh application programming interface
@section Namespace @code{gmsh/model}: model functions

@ftable @code
@item gmsh/model/add
Add a new model, with name @code{name}, and set it as the current model.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L192,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L156,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L594,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L362,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1261,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L22,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L19,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L21,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L19,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L16,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L19,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L17,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L18,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L16,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L15,t5.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L18,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L15,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L16,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L13,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L13,t5.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L26,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L29,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L80,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L44,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L30,t5.f90}, ...)
@end table

@item gmsh/model/remove
Remove the current model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L197,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L160,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L611,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L376,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1279,Fortran}
@end table

@item gmsh/model/list
List the names of all models.

@table @asis
@item Input:
-
@item Output:
@code{names} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L202,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L163,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L624,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L395,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1292,Fortran}
@end table

@item gmsh/model/getCurrent
Get the name of the current model.

@table @asis
@item Input:
-
@item Output:
@code{name} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L207,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L167,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L645,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L418,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1317,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L38,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L32,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L14,explore.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L32,x1.jl})
@end table

@item gmsh/model/setCurrent
Set the current model to the model with name @code{name}. If several models have the same name, select the one that was added first.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L213,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L172,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L667,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L439,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1338,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L45,copy_mesh.py})
@end table

@item gmsh/model/getFileName
Get the file name (if any) associated with the current model. A file name is associated when a model is read from a file on disk.

@table @asis
@item Input:
-
@item Output:
@code{fileName} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L219,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L177,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L686,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L460,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1357,Fortran}
@end table

@item gmsh/model/setFileName
Set the file name associated with the current model.

@table @asis
@item Input:
@code{fileName} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L224,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L181,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L709,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L480,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1377,Fortran}
@end table

@item gmsh/model/getEntities
Get all the entities in the current model. A model entity is represented by two integers: its dimension (dim == 0, 1, 2 or 3) and its tag (its unique, strictly positive identifier). If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. points if @code{dim} == 0). The entities are returned as a vector of (dim, tag) pairs.

@table @asis
@item Input:
@code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L233,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L189,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L727,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L505,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1399,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L74,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L112,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L31,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L113,t20.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L46,t21.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L64,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L96,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L29,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L91,t20.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L35,t21.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L60,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L97,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L26,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L92,t20.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L34,t21.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L114,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L121,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L39,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L109,t20.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L46,t21.f90})
@end table

@item gmsh/model/setEntityName
Set the name of the entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L239,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L194,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L755,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L529,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1429,Fortran}
@end table

@item gmsh/model/getEntityName
Get the name of the entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{name} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L246,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L200,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L777,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L551,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1457,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L96,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L83,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/step_assembly.py#L23,step_assembly.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L82,x1.jl})
@end table

@item gmsh/model/removeEntityName
Remove the entity name @code{name} from the current model.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L253,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L206,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L803,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L571,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1487,Fortran}
@end table

@item gmsh/model/getPhysicalGroups
Get the physical groups in the current model. The physical groups are returned as a vector of (dim, tag) pairs. If @code{dim} is >= 0, return only the groups of the specified dimension (e.g. physical points if @code{dim} == 0).

@table @asis
@item Input:
@code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L260,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L212,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L821,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L594,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1507,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L83,poisson.py})
@end table

@item gmsh/model/getPhysicalGroupsEntities
Get the physical groups in the current model as well as the model entities that make them up. The physical groups are returned as the vector of (dim, tag) pairs @code{dimTags}. The model entities making up the corresponding physical groups are returned in @code{entities}. If @code{dim} is >= 0, return only the groups of the specified dimension (e.g. physical points if @code{dim} == 0).

@table @asis
@item Input:
@code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers), @code{entities} (vector of vectors of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L270,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L221,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L847,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L624,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1541,Fortran}
@end table

@item gmsh/model/getEntitiesForPhysicalGroup
Get the tags of the model entities making up the physical group of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{tags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L278,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L228,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L880,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L662,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1592,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L88,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/test.py#L24,test.py})
@end table

@item gmsh/model/getEntitiesForPhysicalName
Get the model entities (as a vector (dim, tag) pairs) making up the physical group with name @code{name}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L286,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L235,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L907,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L687,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1628,Fortran}
@end table

@item gmsh/model/getPhysicalGroupsForEntity
Get the tags of the physical groups (if any) to which the model entity of dimension @code{dim} and tag @code{tag} belongs.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{physicalTags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L293,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L241,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L932,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L714,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1659,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L123,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L100,x1.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L103,x1.jl})
@end table

@item gmsh/model/addPhysicalGroup
Add a physical group of dimension @code{dim}, grouping the model entities with tags @code{tags}. Return the tag of the physical group, equal to @code{tag} if @code{tag} is positive, or a new tag if @code{tag} < 0. Set the name of the physical group if @code{name} is not empty.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers), @code{tag = -1} (integer), @code{name = ""} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L303,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L250,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L959,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L743,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1697,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L116,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L34,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L36,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L192,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t14.cpp#L76,t14.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L115,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L32,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L33,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L188,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t14.py#L70,t14.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L114,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L30,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L31,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L185,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t14.jl#L69,t14.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L117,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L44,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L95,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L140,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t14.f90#L82,t14.f90}, ...)
@end table

@item gmsh/model/removePhysicalGroups
Remove the physical groups @code{dimTags} (given as a vector of (dim, tag) pairs) from the current model. If @code{dimTags} is empty, remove all groups.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L312,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L258,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L990,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L762,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1736,Fortran}
@end table

@item gmsh/model/setPhysicalName
Set the name of the physical group of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L317,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L262,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1010,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L784,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1757,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L49,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/step_assembly.py#L38,step_assembly.py})
@end table

@item gmsh/model/getPhysicalName
Get the name of the physical group of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{name} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L324,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L268,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1032,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L806,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1785,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L128,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L104,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L87,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L107,x1.jl})
@end table

@item gmsh/model/removePhysicalName
Remove the physical name @code{name} from the current model.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L331,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L274,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1058,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L826,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1815,Fortran}
@end table

@item gmsh/model/setTag
Set the tag of the entity of dimension @code{dim} and tag @code{tag} to the new value @code{newTag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{newTag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L337,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L279,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1076,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L847,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1834,Fortran}
@end table

@item gmsh/model/getBoundary
Get the boundary of the model entities @code{dimTags}, given as a vector of (dim, tag) pairs. Return in @code{outDimTags} the boundary of the individual entities (if @code{combined} is false) or the boundary of the combined geometrical shape formed by all input entities (if @code{combined} is true). Return tags multiplied by the sign of the boundary entity if @code{oriented} is true. Apply the boundary operator recursively down to dimension 0 (i.e. to points) if @code{recursive} is true.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{combined = True} (boolean), @code{oriented = False} (boolean), @code{recursive = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L350,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L291,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1099,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L876,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1868,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t14.cpp#L88,t14.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L114,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L97,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L50,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L174,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t14.py#L80,t14.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L96,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L88,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L46,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L150,t21.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t14.jl#L79,t14.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L97,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L86,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L43,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L150,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t14.f90#L93,t14.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L122,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L112,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L57,t19.f90})
@end table

@item gmsh/model/getAdjacencies
Get the upward and downward adjacencies of the model entity of dimension @code{dim} and tag @code{tag}. The @code{upward} vector returns the tags of adjacent entities of dimension @code{dim} + 1; the @code{downward} vector returns the tags of adjacent entities of dimension @code{dim} - 1.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{upward} (vector of integers), @code{downward} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L362,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L302,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1136,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L908,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1919,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L109,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L93,x1.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L94,x1.jl})
@end table

@item gmsh/model/isEntityOrphan
Return whether the model entity of dimension @code{dim} and tag @code{tag} is an orphan, i.e. is not connected to any entity of the highest dimension in the model.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L372,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L311,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1170,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L936,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1968,Fortran}
@end table

@item gmsh/model/getEntitiesInBoundingBox
Get the model entities in the bounding box defined by the two points (@code{xmin}, @code{ymin}, @code{zmin}) and (@code{xmax}, @code{ymax}, @code{zmax}). If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. points if @code{dim} == 0).

@table @asis
@item Input:
@code{xmin} (double), @code{ymin} (double), @code{zmin} (double), @code{xmax} (double), @code{ymax} (double), @code{zmax} (double), @code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L381,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L319,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1195,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L965,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L1996,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L134,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L86,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L105,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L114,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L80,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L86,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L80,naca_boundary_layer_3d.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L116,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L77,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L85,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L146,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L96,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L102,t20.f90})
@end table

@item gmsh/model/getBoundingBox
Get the bounding box (@code{xmin}, @code{ymin}, @code{zmin}), (@code{xmax}, @code{ymax}, @code{zmax}) of the model entity of dimension @code{dim} and tag @code{tag}. If @code{dim} and @code{tag} are negative, get the bounding box of the whole model.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{xmin} (double), @code{ymin} (double), @code{zmin} (double), @code{xmax} (double), @code{ymax} (double), @code{zmax} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L395,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L332,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1234,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L998,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2058,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L113,t18.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L103,t18.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L101,t18.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L130,t18.f90})
@end table

@item gmsh/model/getDimension
Return the geometrical dimension of the current model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L407,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L343,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1283,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1021,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2111,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L39,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L33,x1.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L32,x1.jl})
@end table

@item gmsh/model/addDiscreteEntity
Add a discrete model entity (defined by a mesh) of dimension @code{dim} in the current model. Return the tag of the new discrete entity, equal to @code{tag} if @code{tag} is positive, or a new tag if @code{tag} < 0. @code{boundary} specifies the tags of the entities on the boundary of the discrete entity, if any. Specifying @code{boundary} allows Gmsh to construct the topology of the overall model.

@table @asis
@item Input:
@code{dim} (integer), @code{tag = -1} (integer), @code{boundary = []} (vector of integers)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L416,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L350,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1300,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1047,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2130,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L78,x2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L24,x4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L71,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L74,x2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L22,x4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L70,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L28,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/cylinderFFD.py#L142,cylinderFFD.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L75,x2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L21,x4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L73,x7.jl}, @url{@value{GITLAB-PREFIX}/examples/api/discrete.jl#L8,discrete.jl}, @url{@value{GITLAB-PREFIX}/examples/api/import_perf.jl#L47,import_perf.jl})
@end table

@item gmsh/model/removeEntities
Remove the entities @code{dimTags} (given as a vector of (dim, tag) pairs) of the current model, provided that they are not on the boundary of (or embedded in) higher-dimensional entities. If @code{recursive} is true, remove all the entities on their boundaries, down to dimension 0.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{recursive = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L426,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L359,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1330,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1069,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2166,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L92,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L119,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L84,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L94,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/spherical_surf.py#L16,spherical_surf.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L82,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L96,t20.jl}, @url{@value{GITLAB-PREFIX}/examples/api/spherical_surf.jl#L14,spherical_surf.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L107,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L117,t20.f90})
@end table

@item gmsh/model/getEntityType
Get the type of the entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{entityType} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L432,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L364,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1354,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1093,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2192,Fortran}
@end table

@item gmsh/model/getType
Get the type of the entity of dimension @code{dim} and tag @code{tag}. (This is a deprecated synonym for @code{getType}.)

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{entityType} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L440,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L371,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1380,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1118,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2223,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L164,t21.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L94,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L147,t21.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L82,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L20,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/partition.py#L44,partition.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L147,t21.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L81,x1.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L26,explore.jl})
@end table

@item gmsh/model/getEntityProperties
Get the properties of the entity of dimension @code{dim} and tag @code{tag}. The @code{reals} vector contains the 4 coefficients of the cartesian equation for a plane surface; the center coordinates, axis direction, major radius and minor radius for a torus; the center coordinates, axis direction and radius for a cylinder; the center coordinates, axis direction, radius and semi-angle for surfaces of revolution; the center coordinates and the radius for a sphere.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{integers} (vector of integers), @code{reals} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L453,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L383,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1407,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1148,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2259,Fortran}
@end table

@item gmsh/model/getParent
In a partitioned model, get the parent of the entity of dimension @code{dim} and tag @code{tag}, i.e. from which the entity is a part of, if any. @code{parentDim} and @code{parentTag} are set to -1 if the entity has no parent.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{parentDim} (integer), @code{parentTag} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L463,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L392,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1444,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1179,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2308,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L171,t21.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L142,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L149,t21.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L113,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L34,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/partition.py#L46,partition.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L149,t21.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L120,x1.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L30,explore.jl})
@end table

@item gmsh/model/getNumberOfPartitions
Return the number of partitions in the model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L471,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L399,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1477,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1198,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2341,Fortran}
@end table

@item gmsh/model/getPartitions
In a partitioned model, return the tags of the partition(s) to which the entity belongs.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{partitions} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L477,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L403,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1494,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1221,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2357,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L161,t21.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L137,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L144,t21.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L110,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L31,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/partition.py#L41,partition.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L145,t21.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L117,x1.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L27,explore.jl})
@end table

@item gmsh/model/getValue
Evaluate the parametrization of the entity of dimension @code{dim} and tag @code{tag} at the parametric coordinates @code{parametricCoord}. Only valid for @code{dim} equal to 0 (with empty @code{parametricCoord}), 1 (with @code{parametricCoord} containing parametric coordinates on the curve) or 2 (with @code{parametricCoord} containing u, v parametric coordinates on the surface, concatenated: [p1u, p1v, p2u, ...]). Return x, y, z coordinates in @code{coord}, concatenated: [p1x, p1y, p1z, p2x, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L490,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L415,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1521,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1252,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2398,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L90,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L97,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L85,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L82,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/reparamOnFace.py#L20,reparamOnFace.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L35,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L83,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L76,x5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L99,t2.f90})
@end table

@item gmsh/model/getDerivative
Evaluate the derivative of the parametrization of the entity of dimension @code{dim} and tag @code{tag} at the parametric coordinates @code{parametricCoord}. Only valid for @code{dim} equal to 1 (with @code{parametricCoord} containing parametric coordinates on the curve) or 2 (with @code{parametricCoord} containing u, v parametric coordinates on the surface, concatenated: [p1u, p1v, p2u, ...]). For @code{dim} equal to 1 return the x, y, z components of the derivative with respect to u [d1ux, d1uy, d1uz, d2ux, ...]; for @code{dim} equal to 2 return the x, y, z components of the derivative with respect to u and v: [d1ux, d1uy, d1uz, d1vx, d1vy, d1vz, d2ux, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{derivatives} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L506,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L430,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1556,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1285,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2449,Fortran}
@end table

@item gmsh/model/getSecondDerivative
Evaluate the second derivative of the parametrization of the entity of dimension @code{dim} and tag @code{tag} at the parametric coordinates @code{parametricCoord}. Only valid for @code{dim} equal to 1 (with @code{parametricCoord} containing parametric coordinates on the curve) or 2 (with @code{parametricCoord} containing u, v parametric coordinates on the surface, concatenated: [p1u, p1v, p2u, ...]). For @code{dim} equal to 1 return the x, y, z components of the second derivative with respect to u [d1uux, d1uuy, d1uuz, d2uux, ...]; for @code{dim} equal to 2 return the x, y, z components of the second derivative with respect to u and v, and the mixed derivative with respect to u and v: [d1uux, d1uuy, d1uuz, d1vvx, d1vvy, d1vvz, d1uvx, d1uvy, d1uvz, d2uux, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{derivatives} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L523,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L447,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1593,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1320,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2502,Fortran}
@end table

@item gmsh/model/getCurvature
Evaluate the (maximum) curvature of the entity of dimension @code{dim} and tag @code{tag} at the parametric coordinates @code{parametricCoord}. Only valid for @code{dim} equal to 1 (with @code{parametricCoord} containing parametric coordinates on the curve) or 2 (with @code{parametricCoord} containing u, v parametric coordinates on the surface, concatenated: [p1u, p1v, p2u, ...]).

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{curvatures} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L535,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L458,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1632,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1350,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2549,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L60,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L50,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/normals.py#L28,normals.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L48,x5.jl})
@end table

@item gmsh/model/getPrincipalCurvatures
Evaluate the principal curvatures of the surface with tag @code{tag} at the parametric coordinates @code{parametricCoord}, as well as their respective directions. @code{parametricCoord} are given by pair of u and v coordinates, concatenated: [p1u, p1v, p2u, ...].

@table @asis
@item Input:
@code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{curvatureMax} (vector of doubles), @code{curvatureMin} (vector of doubles), @code{directionMax} (vector of doubles), @code{directionMin} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L546,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L468,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1665,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1381,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2595,Fortran}
@end table

@item gmsh/model/getNormal
Get the normal to the surface with tag @code{tag} at the parametric coordinates @code{parametricCoord}. The @code{parametricCoord} vector should contain u and v coordinates, concatenated: [p1u, p1v, p2u, ...]. @code{normals} are returned as a vector of x, y, z components, concatenated: [n1x, n1y, n1z, n2x, ...].

@table @asis
@item Input:
@code{tag} (integer), @code{parametricCoord} (vector of doubles)
@item Output:
@code{normals} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L559,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L480,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1708,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1418,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2672,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L56,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L47,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/normals.py#L26,normals.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L45,x5.jl})
@end table

@item gmsh/model/getParametrization
Get the parametric coordinates @code{parametricCoord} for the points @code{coord} on the entity of dimension @code{dim} and tag @code{tag}. @code{coord} are given as x, y, z coordinates, concatenated: [p1x, p1y, p1z, p2x, ...]. @code{parametricCoord} returns the parametric coordinates t on the curve (if @code{dim} = 1) or u and v coordinates concatenated on the surface (if @code{dim} == 2), i.e. [p1t, p2t, ...] or [p1u, p1v, p2u, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{coord} (vector of doubles)
@item Output:
@code{parametricCoord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L571,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L491,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1738,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1449,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2715,Fortran}
@end table

@item gmsh/model/getParametrizationBounds
Get the @code{min} and @code{max} bounds of the parametric coordinates for the entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{min} (vector of doubles), @code{max} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L580,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L499,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1772,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1476,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2759,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L93,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L79,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/reparamOnFace.py#L17,reparamOnFace.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L73,x5.jl})
@end table

@item gmsh/model/isInside
Check if the coordinates (or the parametric coordinates if @code{parametric} is set) provided in @code{coord} correspond to points inside the entity of dimension @code{dim} and tag @code{tag}, and return the number of points inside. This feature is only available for a subset of entities, depending on the underlying geometrical representation.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{coord} (vector of doubles), @code{parametric = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L592,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L510,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1804,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1509,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2810,Fortran}
@end table

@item gmsh/model/getClosestPoint
Get the points @code{closestCoord} on the entity of dimension @code{dim} (1 or 2) and tag @code{tag} to the points @code{coord}, by orthogonal projection. @code{coord} and @code{closestCoord} are given as x, y, z coordinates, concatenated: [p1x, p1y, p1z, p2x, ...]. @code{parametricCoord} returns the parametric coordinates t on the curve (if @code{dim} == 1) or u and v coordinates concatenated on the surface (if @code{dim} = 2), i.e. [p1t, p2t, ...] or [p1u, p1v, p2u, ...]. The closest points can lie outside the (trimmed) entities: use @code{isInside()} to check.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{coord} (vector of doubles)
@item Output:
@code{closestCoord} (vector of doubles), @code{parametricCoord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L606,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L524,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1836,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1539,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2855,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/closest_point.py#L11,closest_point.py})
@end table

@item gmsh/model/reparametrizeOnSurface
Reparametrize the boundary entity (point or curve, i.e. with @code{dim} == 0 or @code{dim} == 1) of tag @code{tag} on the surface @code{surfaceTag}. If @code{dim} == 1, reparametrize all the points corresponding to the parametric coordinates @code{parametricCoord}. Multiple matches in case of periodic surfaces can be selected with @code{which}. This feature is only available for a subset of entities, depending on the underlying geometrical representation.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles), @code{surfaceTag} (integer), @code{which = 0} (integer)
@item Output:
@code{surfaceParametricCoord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L620,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L537,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1877,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1575,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2915,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L102,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L86,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/reparamOnFace.py#L19,reparamOnFace.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L80,x5.jl})
@end table

@item gmsh/model/setVisibility
Set the visibility of the model entities @code{dimTags} (given as a vector of (dim, tag) pairs) to @code{value}. Apply the visibility setting recursively if @code{recursive} is true.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{value} (integer), @code{recursive = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L632,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L548,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1915,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1600,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L2970,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/gui.py#L33,gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/hybrid_order.py#L16,hybrid_order.py})
@end table

@item gmsh/model/getVisibility
Get the visibility of the model entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{value} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L639,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L554,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1940,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1624,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3001,Fortran}
@end table

@item gmsh/model/setVisibilityPerWindow
Set the global visibility of the model per window to @code{value}, where @code{windowIndex} identifies the window in the window list.

@table @asis
@item Input:
@code{value} (integer), @code{windowIndex = 0} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L647,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L561,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1966,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1645,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3030,Fortran}
@end table

@item gmsh/model/setColor
Set the color of the model entities @code{dimTags} (given as a vector of (dim, tag) pairs) to the RGBA value (@code{r}, @code{g}, @code{b}, @code{a}), where @code{r}, @code{g}, @code{b} and @code{a} should be integers between 0 and 255. Apply the color setting recursively if @code{recursive} is true.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a = 255} (integer), @code{recursive = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L656,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L569,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1987,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1671,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3056,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L158,t4.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L169,t4.py}, @url{@value{GITLAB-PREFIX}/examples/api/gui.py#L35,gui.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L155,t4.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L171,t4.f90})
@end table

@item gmsh/model/getColor
Get the color of the model entity of dimension @code{dim} and tag @code{tag}. If no color is specified for the entity, return fully transparent blue, i.e. (0, 0, 255, 0).

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L668,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L580,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2019,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1699,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3104,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/step_boundary_colors.py#L10,step_boundary_colors.py})
@end table

@item gmsh/model/setCoordinates
Set the @code{x}, @code{y}, @code{z} coordinates of a geometrical point.

@table @asis
@item Input:
@code{tag} (integer), @code{x} (double), @code{y} (double), @code{z} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L678,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L589,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2060,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1724,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3147,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L79,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L75,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/reparamOnFace.py#L23,reparamOnFace.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L77,x2.jl})
@end table

@item gmsh/model/setAttribute
Set the values of the attribute with name @code{name}.

@table @asis
@item Input:
@code{name} (string), @code{values} (vector of strings)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L686,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L596,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2084,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1743,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3180,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/msh_attributes.py#L6,msh_attributes.py})
@end table

@item gmsh/model/getAttribute
Get the values of the attribute with name @code{name}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{values} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L692,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L601,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2105,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1764,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3211,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/msh_attributes.py#L14,msh_attributes.py})
@end table

@item gmsh/model/getAttributeNames
Get the names of any optional attributes stored in the model.

@table @asis
@item Input:
-
@item Output:
@code{names} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L698,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L606,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2129,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1788,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3241,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/msh_attributes.py#L13,msh_attributes.py})
@end table

@item gmsh/model/removeAttribute
Remove the attribute with name @code{name}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L703,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L610,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2151,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1810,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3266,Fortran}
@end table

@end ftable

@node Namespace gmsh/model/mesh, Namespace gmsh/model/mesh/field, Namespace gmsh/model, Gmsh application programming interface
@section Namespace @code{gmsh/model/mesh}: mesh functions

@ftable @code
@item gmsh/model/mesh/generate
Generate a mesh of the current model, up to dimension @code{dim} (0, 1, 2 or 3).

@table @asis
@item Input:
@code{dim = 3} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L711,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L614,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2175,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1837,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3284,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L120,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L141,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L83,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L165,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L220,t5.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L119,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L134,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L78,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L174,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L214,t5.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L118,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L132,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L77,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L160,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L211,t5.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L121,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L149,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L154,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L176,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L166,t5.f90}, ...)
@end table

@item gmsh/model/mesh/partition
Partition the mesh of the current model into @code{numPart} partitions. Optionally, @code{elementTags} and @code{partitions} can be provided to specify the partition of each element explicitly.

@table @asis
@item Input:
@code{numPart} (integer), @code{elementTags = []} (vector of sizes), @code{partitions = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L718,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L620,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2192,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1858,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3304,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L136,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L124,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/partition.py#L26,partition.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L123,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L150,t21.f90})
@end table

@item gmsh/model/mesh/unpartition
Unpartition the mesh of the current model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L725,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L626,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2217,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1872,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3338,Fortran}
@end table

@item gmsh/model/mesh/optimize
Optimize the mesh of the current model using @code{method} (empty for default tetrahedral mesh optimizer, "Netgen" for Netgen optimizer, "HighOrder" for direct high-order mesh optimizer, "HighOrderElastic" for high-order elastic smoother, "HighOrderFastCurving" for fast curving algorithm, "Laplace2D" for Laplace smoothing, "Relocate2D" and "Relocate3D" for node relocation, "QuadQuasiStructured" for quad mesh optimization, "UntangleMeshGeometry" for untangling). If @code{force} is set apply the optimization also to discrete entities. If @code{dimTags} (given as a vector of (dim, tag) pairs) is given, only apply the optimizer to the given entities.

@table @asis
@item Input:
@code{method = ""} (string), @code{force = False} (boolean), @code{niter = 1} (integer), @code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L739,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L637,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2230,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1900,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3359,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L140,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L167,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/opt.py#L15,opt.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L53,tube_boundary_layer.py})
@end table

@item gmsh/model/mesh/recombine
Recombine the mesh of the current model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L747,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L644,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2262,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1916,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3395,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/stl_to_mesh.py#L29,stl_to_mesh.py})
@end table

@item gmsh/model/mesh/refine
Refine the mesh of the current model by uniformly splitting the elements. This resets any high-order elements to order 1.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L753,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L648,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2275,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1931,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3409,Fortran}
@end table

@item gmsh/model/mesh/setOrder
Change the order of the elements in the mesh of the current model to @code{order}.

@table @asis
@item Input:
@code{order} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L759,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L652,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2289,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1948,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3423,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x6.cpp#L27,x6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L27,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/hybrid_order.py#L18,hybrid_order.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L139,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L166,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L52,tube_boundary_layer.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L26,x6.jl}, @url{@value{GITLAB-PREFIX}/examples/api/julia_exception.jl#L7,julia_exception.jl})
@end table

@item gmsh/model/mesh/getLastEntityError
Get the last entities @code{dimTags} (as a vector of (dim, tag) pairs) where a meshing error occurred. Currently only populated by the new 3D meshing algorithms.

@table @asis
@item Input:
-
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L766,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L658,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2308,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1970,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3443,Fortran}
@end table

@item gmsh/model/mesh/getLastNodeError
Get the last node tags @code{nodeTags} where a meshing error occurred. Currently only populated by the new 3D meshing algorithms.

@table @asis
@item Input:
-
@item Output:
@code{nodeTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L772,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L663,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2332,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1995,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3469,Fortran}
@end table

@item gmsh/model/mesh/clear
Clear the mesh, i.e. delete all the nodes and elements, for the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, clear the whole mesh. Note that the mesh of an entity can only be cleared if this entity is not on the boundary of another entity with a non-empty mesh.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L781,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L671,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2355,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2019,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3498,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L53,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/flatten.py#L35,flatten.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_partial_move.py#L20,remesh_partial_move.py}, @url{@value{GITLAB-PREFIX}/examples/api/remove_elements.py#L13,remove_elements.py})
@end table

@item gmsh/model/mesh/removeElements
Remove the elements with tags @code{elementTags} from the entity of dimension @code{dim} and tag @code{tag}. If @code{elementTags} is empty, remove all the elements classified on the entity. To get consistent node classification on model entities, @code{reclassifyNodes()} should be called afterwards.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{elementTags = []} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L789,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L678,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2377,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2043,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3522,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/remove_elements.py#L18,remove_elements.py})
@end table

@item gmsh/model/mesh/reverse
Reverse the orientation of the elements in the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, reverse the orientation of the elements in the whole mesh.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L798,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L686,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2403,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2063,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3555,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/mirror_mesh.py#L47,mirror_mesh.py})
@end table

@item gmsh/model/mesh/reverseElements
Reverse the orientation of the elements with tags @code{elementTags}.

@table @asis
@item Input:
@code{elementTags} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L803,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L690,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2423,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2082,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3576,Fortran}
@end table

@item gmsh/model/mesh/affineTransform
Apply the affine transformation @code{affineTransform} (16 entries of a 4x4 matrix, by row; only the 12 first can be provided for convenience) to the coordinates of the nodes classified on the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, transform all the nodes in the mesh.

@table @asis
@item Input:
@code{affineTransform} (vector of doubles), @code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L812,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L698,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2442,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2104,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3601,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/flatten2.py#L19,flatten2.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_partial_move.py#L31,remesh_partial_move.py})
@end table

@item gmsh/model/mesh/getNodes
Get the nodes classified on the entity of dimension @code{dim} and tag @code{tag}. If @code{tag} < 0, get the nodes for all entities of dimension @code{dim}. If @code{dim} and @code{tag} are negative, get all the nodes in the mesh. @code{nodeTags} contains the node tags (their unique, strictly positive identification numbers). @code{coord} is a vector of length 3 times the length of @code{nodeTags} that contains the x, y, z coordinates of the nodes, concatenated: [n1x, n1y, n1z, n2x, ...]. If @code{dim} >= 0 and @code{returnParamtricCoord} is set, @code{parametricCoord} contains the parametric coordinates ([u1, u2, ...] or [u1, v1, u2, ...]) of the nodes, if available. The length of @code{parametricCoord} can be 0 or @code{dim} times the length of @code{nodeTags}. If @code{includeBoundary} is set, also return the nodes classified on the boundary of the entity (which will be reparametrized on the entity if @code{dim} >= 0 in order to compute their parametric coordinates).

@table @asis
@item Input:
@code{dim = -1} (integer), @code{tag = -1} (integer), @code{includeBoundary = False} (boolean), @code{returnParametricCoord = True} (boolean)
@item Output:
@code{nodeTags} (vector of sizes), @code{coord} (vector of doubles), @code{parametricCoord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L830,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L715,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2468,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2143,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3642,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L79,x1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L65,x4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L51,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L70,x1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L61,x4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L43,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L15,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L20,copy_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L69,x1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L62,x4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L41,x5.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L20,explore.jl})
@end table

@item gmsh/model/mesh/getNodesByElementType
Get the nodes classified on the entity of tag @code{tag}, for all the elements of type @code{elementType}. The other arguments are treated as in @code{getNodes}.

@table @asis
@item Input:
@code{elementType} (integer), @code{tag = -1} (integer), @code{returnParametricCoord = True} (boolean)
@item Output:
@code{nodeTags} (vector of sizes), @code{coord} (vector of doubles), @code{parametricCoord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L842,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L726,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2519,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2178,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3712,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L22,stl_to_brep.py})
@end table

@item gmsh/model/mesh/getNode
Get the coordinates and the parametric coordinates (if any) of the node with tag @code{tag}, as well as the dimension @code{dim} and tag @code{tag} of the entity on which the node is classified. This function relies on an internal cache (a vector in case of dense node numbering, a map otherwise); for large meshes accessing nodes in bulk is often preferable.

@table @asis
@item Input:
@code{nodeTag} (size)
@item Output:
@code{coord} (vector of doubles), @code{parametricCoord} (vector of doubles), @code{dim} (integer), @code{tag} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L856,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L739,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2557,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2215,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3780,Fortran}
@end table

@item gmsh/model/mesh/setNode
Set the coordinates and the parametric coordinates (if any) of the node with tag @code{tag}. This function relies on an internal cache (a vector in case of dense node numbering, a map otherwise); for large meshes accessing nodes in bulk is often preferable.

@table @asis
@item Input:
@code{nodeTag} (size), @code{coord} (vector of doubles), @code{parametricCoord} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L868,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L750,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2598,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2246,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3835,Fortran}
@end table

@item gmsh/model/mesh/rebuildNodeCache
Rebuild the node cache.

@table @asis
@item Input:
@code{onlyIfNecessary = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L875,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L756,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2625,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2264,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3869,Fortran}
@end table

@item gmsh/model/mesh/rebuildElementCache
Rebuild the element cache.

@table @asis
@item Input:
@code{onlyIfNecessary = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L880,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L760,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2643,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2282,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3887,Fortran}
@end table

@item gmsh/model/mesh/getNodesForPhysicalGroup
Get the nodes from all the elements belonging to the physical group of dimension @code{dim} and tag @code{tag}. @code{nodeTags} contains the node tags; @code{coord} is a vector of length 3 times the length of @code{nodeTags} that contains the x, y, z coordinates of the nodes, concatenated: [n1x, n1y, n1z, n2x, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{nodeTags} (vector of sizes), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L888,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L767,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2661,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2308,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3908,Fortran}
@end table

@item gmsh/model/mesh/getMaxNodeTag
Get the maximum tag @code{maxTag} of a node in the mesh.

@table @asis
@item Input:
-
@item Output:
@code{maxTag} (size)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L896,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L774,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2695,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2334,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3955,Fortran}
@end table

@item gmsh/model/mesh/addNodes
Add nodes classified on the model entity of dimension @code{dim} and tag @code{tag}. @code{nodeTags} contains the node tags (their unique, strictly positive identification numbers). @code{coord} is a vector of length 3 times the length of @code{nodeTags} that contains the x, y, z coordinates of the nodes, concatenated: [n1x, n1y, n1z, n2x, ...]. The optional @code{parametricCoord} vector contains the parametric coordinates of the nodes, if any. The length of @code{parametricCoord} can be 0 or @code{dim} times the length of @code{nodeTags}. If the @code{nodeTags} vector is empty, new tags are automatically assigned to the nodes.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{nodeTags} (vector of sizes), @code{coord} (vector of doubles), @code{parametricCoord = []} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L909,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L786,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2717,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2364,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L3981,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L92,x2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L27,x4.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L88,x2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L25,x4.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L29,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/cylinderFFD.py#L143,cylinderFFD.py}, @url{@value{GITLAB-PREFIX}/examples/api/discrete.py#L12,discrete.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L91,x2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L24,x4.jl}, @url{@value{GITLAB-PREFIX}/examples/api/discrete.jl#L11,discrete.jl}, @url{@value{GITLAB-PREFIX}/examples/api/import_perf.jl#L52,import_perf.jl})
@end table

@item gmsh/model/mesh/reclassifyNodes
Reclassify all nodes on their associated model entity, based on the elements. Can be used when importing nodes in bulk (e.g. by associating them all to a single volume), to reclassify them correctly on model surfaces, curves, etc. after the elements have been set.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L921,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L797,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2754,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2382,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4031,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L107,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L102,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_cavity.py#L69,remesh_cavity.py}, @url{@value{GITLAB-PREFIX}/examples/api/remove_elements.py#L28,remove_elements.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L66,terrain.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L106,x2.jl})
@end table

@item gmsh/model/mesh/relocateNodes
Relocate the nodes classified on the entity of dimension @code{dim} and tag @code{tag} using their parametric coordinates. If @code{tag} < 0, relocate the nodes for all entities of dimension @code{dim}. If @code{dim} and @code{tag} are negative, relocate all the nodes in the mesh.

@table @asis
@item Input:
@code{dim = -1} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L929,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L803,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2771,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2404,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4047,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/relocate_nodes.py#L48,relocate_nodes.py})
@end table

@item gmsh/model/mesh/getElements
Get the elements classified on the entity of dimension @code{dim} and tag @code{tag}. If @code{tag} < 0, get the elements for all entities of dimension @code{dim}. If @code{dim} and @code{tag} are negative, get all the elements in the mesh. @code{elementTypes} contains the MSH types of the elements (e.g. @code{2} for 3-node triangles: see @code{getElementProperties} to obtain the properties for a given element type). @code{elementTags} is a vector of the same length as @code{elementTypes}; each entry is a vector containing the tags (unique, strictly positive identifiers) of the elements of the corresponding type. @code{nodeTags} is also a vector of the same length as @code{elementTypes}; each entry is a vector of length equal to the number of elements of the given type times the number N of nodes for this type of element, that contains the node tags of all the elements of the given type, concatenated: [e1n1, e1n2, ..., e1nN, e2n1, ...].

@table @asis
@item Input:
@code{dim = -1} (integer), @code{tag = -1} (integer)
@item Output:
@code{elementTypes} (vector of integers), @code{elementTags} (vector of vectors of sizes), @code{nodeTags} (vector of vectors of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L947,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L820,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2794,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2439,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4082,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L84,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L73,x1.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L21,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/cylinderFFD.py#L47,cylinderFFD.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L24,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/flatten.py#L32,flatten.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L72,x1.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L22,explore.jl})
@end table

@item gmsh/model/mesh/getElement
Get the type and node tags of the element with tag @code{elementTag}, as well as the dimension @code{dim} and tag @code{tag} of the entity on which the element is classified. This function relies on an internal cache (a vector in case of dense element numbering, a map otherwise); for large meshes accessing elements in bulk is often preferable.

@table @asis
@item Input:
@code{elementTag} (size)
@item Output:
@code{elementType} (integer), @code{nodeTags} (vector of sizes), @code{dim} (integer), @code{tag} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L960,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L832,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2841,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2482,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4161,Fortran}
@end table

@item gmsh/model/mesh/getElementByCoordinates
Search the mesh for an element located at coordinates (@code{x}, @code{y}, @code{z}). This function performs a search in a spatial octree. If an element is found, return its tag, type and node tags, as well as the local coordinates (@code{u}, @code{v}, @code{w}) within the reference element corresponding to search location. If @code{dim} is >= 0, only search for elements of the given dimension. If @code{strict} is not set, use a tolerance to find elements near the search location.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dim = -1} (integer), @code{strict = False} (boolean)
@item Output:
@code{elementTag} (size), @code{elementType} (integer), @code{nodeTags} (vector of sizes), @code{u} (double), @code{v} (double), @code{w} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L975,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L845,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2882,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2523,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4211,Fortran}
@end table

@item gmsh/model/mesh/getElementsByCoordinates
Search the mesh for element(s) located at coordinates (@code{x}, @code{y}, @code{z}). This function performs a search in a spatial octree. Return the tags of all found elements in @code{elementTags}. Additional information about the elements can be accessed through @code{getElement} and @code{getLocalCoordinatesInElement}. If @code{dim} is >= 0, only search for elements of the given dimension. If @code{strict} is not set, use a tolerance to find elements near the search location.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dim = -1} (integer), @code{strict = False} (boolean)
@item Output:
@code{elementTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L996,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L864,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2940,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2561,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4291,Fortran}
@end table

@item gmsh/model/mesh/getLocalCoordinatesInElement
Return the local coordinates (@code{u}, @code{v}, @code{w}) within the element @code{elementTag} corresponding to the model coordinates (@code{x}, @code{y}, @code{z}). This function relies on an internal cache (a vector in case of dense element numbering, a map otherwise); for large meshes accessing elements in bulk is often preferable.

@table @asis
@item Input:
@code{elementTag} (size), @code{x} (double), @code{y} (double), @code{z} (double)
@item Output:
@code{u} (double), @code{v} (double), @code{w} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1010,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L877,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2977,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2593,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4345,Fortran}
@end table

@item gmsh/model/mesh/getElementTypes
Get the types of elements in the entity of dimension @code{dim} and tag @code{tag}. If @code{tag} < 0, get the types for all entities of dimension @code{dim}. If @code{dim} and @code{tag} are negative, get all the types in the mesh.

@table @asis
@item Input:
@code{dim = -1} (integer), @code{tag = -1} (integer)
@item Output:
@code{elementTypes} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1023,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L889,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3020,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2620,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4395,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x6.cpp#L38,x6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L33,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L92,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L33,x6.jl})
@end table

@item gmsh/model/mesh/getElementType
Return an element type given its family name @code{familyName} ("Point", "Line", "Triangle", "Quadrangle", "Tetrahedron", "Pyramid", "Prism", "Hexahedron") and polynomial order @code{order}. If @code{serendip} is true, return the corresponding serendip element type (element without interior nodes).

@table @asis
@item Input:
@code{familyName} (string), @code{order} (integer), @code{serendip = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1033,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L898,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3048,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2648,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4433,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L32,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L29,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L28,x7.jl})
@end table

@item gmsh/model/mesh/getElementProperties
Get the properties of an element of type @code{elementType}: its name (@code{elementName}), dimension (@code{dim}), order (@code{order}), number of nodes (@code{numNodes}), local coordinates of the nodes in the reference element (@code{localNodeCoord} vector, of length @code{dim} times @code{numNodes}) and number of primary (first order) nodes (@code{numPrimaryNodes}).

@table @asis
@item Input:
@code{elementType} (integer)
@item Output:
@code{elementName} (string), @code{dim} (integer), @code{order} (integer), @code{numNodes} (integer), @code{localNodeCoord} (vector of doubles), @code{numPrimaryNodes} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1044,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L908,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3076,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2678,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4467,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L152,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L117,x1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L38,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/explore.py#L36,explore.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L111,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L125,x1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L38,x6.jl}, @url{@value{GITLAB-PREFIX}/examples/api/explore.jl#L33,explore.jl})
@end table

@item gmsh/model/mesh/getElementsByType
Get the elements of type @code{elementType} classified on the entity of tag @code{tag}. If @code{tag} < 0, get the elements for all entities. @code{elementTags} is a vector containing the tags (unique, strictly positive identifiers) of the elements of the corresponding type. @code{nodeTags} is a vector of length equal to the number of elements of the given type times the number N of nodes for this type of element, that contains the node tags of all the elements of the given type, concatenated: [e1n1, e1n2, ..., e1nN, e2n1, ...]. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vectors must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{tag = -1} (integer), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{elementTags} (vector of sizes), @code{nodeTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1063,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L926,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3125,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2720,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4532,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L58,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L50,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L18,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/neighbors.py#L15,neighbors.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L95,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L21,stl_to_brep.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L49,x7.jl})
@end table

@item gmsh/model/mesh/getMaxElementTag
Get the maximum tag @code{maxTag} of an element in the mesh.

@table @asis
@item Input:
-
@item Output:
@code{maxTag} (size)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1073,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L935,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3168,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2746,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4589,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L78,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L74,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L77,x7.jl})
@end table

@item gmsh/model/mesh/preallocateElementsByType
Preallocate data before calling @code{getElementsByType} with @code{numTasks} > 1. For C++ only.

@table @asis
@item Input:
@code{elementType} (integer), @code{elementTag} (boolean), @code{nodeTag} (boolean), @code{tag = -1} (integer)
@item Output:
@code{elementTags} (vector of sizes), @code{nodeTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1079,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L940,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4608,Fortran}
@end table

@item gmsh/model/mesh/getElementQualities
Get the quality @code{elementQualities} of the elements with tags @code{elementTags}. @code{qualityType} is the requested quality measure: "minDetJac" and "maxDetJac" for the adaptively computed minimal and maximal Jacobian determinant, "minSJ" for the sampled minimal scaled jacobien, "minSICN" for the sampled minimal signed inverted condition number, "minSIGE" for the sampled signed inverted gradient error, "gamma" for the ratio of the inscribed to circumcribed sphere radius, "innerRadius" for the inner radius, "outerRadius" for the outerRadius, "minIsotropy" for the minimum isotropy measure, "angleShape" for the angle shape measure, "minEdge" for the minimum straight edge length, "maxEdge" for the maximum straight edge length, "volume" for the volume. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vector must be preallocated).

@table @asis
@item Input:
@code{elementTags} (vector of sizes), @code{qualityName = "minSICN"} (string), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{elementsQuality} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1101,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L961,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3190,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2782,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4677,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/mesh_quality.py#L12,mesh_quality.py}, @url{@value{GITLAB-PREFIX}/examples/api/min_edge.py#L7,min_edge.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_element_size.py#L16,view_element_size.py})
@end table

@item gmsh/model/mesh/addElements
Add elements classified on the entity of dimension @code{dim} and tag @code{tag}. @code{types} contains the MSH types of the elements (e.g. @code{2} for 3-node triangles: see the Gmsh reference manual). @code{elementTags} is a vector of the same length as @code{types}; each entry is a vector containing the tags (unique, strictly positive identifiers) of the elements of the corresponding type. @code{nodeTags} is also a vector of the same length as @code{types}; each entry is a vector of length equal to the number of elements of the given type times the number N of nodes per element, that contains the node tags of all the elements of the given type, concatenated: [e1n1, e1n2, ..., e1nN, e2n1, ...].

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{elementTypes} (vector of integers), @code{elementTags} (vector of vectors of integers (size)), @code{nodeTags} (vector of vectors of integers (size))
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1119,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L978,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3233,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2815,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4734,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L30,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/cylinderFFD.py#L144,cylinderFFD.py}, @url{@value{GITLAB-PREFIX}/examples/api/discrete.py#L32,discrete.py}, @url{@value{GITLAB-PREFIX}/examples/api/flatten.py#L42,flatten.py}, @url{@value{GITLAB-PREFIX}/examples/api/mesh_from_discrete_curve.py#L21,mesh_from_discrete_curve.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/examples/api/discrete.jl#L19,discrete.jl})
@end table

@item gmsh/model/mesh/addElementsByType
Add elements of type @code{elementType} classified on the entity of tag @code{tag}. @code{elementTags} contains the tags (unique, strictly positive identifiers) of the elements of the corresponding type. @code{nodeTags} is a vector of length equal to the number of elements times the number N of nodes per element, that contains the node tags of all the elements, concatenated: [e1n1, e1n2, ..., e1nN, e2n1, ...]. If the @code{elementTag} vector is empty, new tags are automatically assigned to the elements.

@table @asis
@item Input:
@code{tag} (integer), @code{elementType} (integer), @code{elementTags} (vector of sizes), @code{nodeTags} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1134,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L992,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3271,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2844,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4813,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L98,x2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L29,x4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L89,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L94,x2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L27,x4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L86,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/import_perf.py#L70,import_perf.py}, @url{@value{GITLAB-PREFIX}/examples/api/raw_tetrahedralization.py#L21,raw_tetrahedralization.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L97,x2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L26,x4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L90,x7.jl}, @url{@value{GITLAB-PREFIX}/examples/api/import_perf.jl#L57,import_perf.jl})
@end table

@item gmsh/model/mesh/getIntegrationPoints
Get the numerical quadrature information for the given element type @code{elementType} and integration rule @code{integrationType}, where @code{integrationType} concatenates the integration rule family name with the desired order (e.g. "Gauss4" for a quadrature suited for integrating 4th order polynomials). The "CompositeGauss" family uses tensor-product rules based the 1D Gauss-Legendre rule; the "Gauss" family uses an economic scheme when available (i.e. with a minimal number of points), and falls back to "CompositeGauss" otherwise. Note that integration points for the "Gauss" family can fall outside of the reference element for high-order rules. @code{localCoord} contains the u, v, w coordinates of the G integration points in the reference element: [g1u, g1v, g1w, ..., gGu, gGv, gGw]. @code{weights} contains the associated weights: [g1q, ..., gGq].

@table @asis
@item Input:
@code{elementType} (integer), @code{integrationType} (string)
@item Output:
@code{localCoord} (vector of doubles), @code{weights} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1153,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1010,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3303,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2877,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4863,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L46,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L30,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L112,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L46,x6.jl})
@end table

@item gmsh/model/mesh/getJacobians
Get the Jacobians of all the elements of type @code{elementType} classified on the entity of tag @code{tag}, at the G evaluation points @code{localCoord} given as concatenated u, v, w coordinates in the reference element [g1u, g1v, g1w, ..., gGu, gGv, gGw]. Data is returned by element, with elements in the same order as in @code{getElements} and @code{getElementsByType}. @code{jacobians} contains for each element the 9 entries of the 3x3 Jacobian matrix at each evaluation point. The matrix is returned by column: [e1g1Jxu, e1g1Jyu, e1g1Jzu, e1g1Jxv, ..., e1g1Jzw, e1g2Jxu, ..., e1gGJzw, e2g1Jxu, ...], with Jxu = dx/du, Jyu = dy/du, etc. @code{determinants} contains for each element the determinant of the Jacobian matrix at each evaluation point: [e1g1, e1g2, ... e1gG, e2g1, ...]. @code{coord} contains for each element the x, y, z coordinates of the evaluation points. If @code{tag} < 0, get the Jacobian data for all entities. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vectors must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{localCoord} (vector of doubles), @code{tag = -1} (integer), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{jacobians} (vector of doubles), @code{determinants} (vector of doubles), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1175,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1031,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3345,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2923,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L4924,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L67,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L31,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L131,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L67,x6.jl})
@end table

@item gmsh/model/mesh/preallocateJacobians
Preallocate data before calling @code{getJacobians} with @code{numTasks} > 1. For C++ only.

@table @asis
@item Input:
@code{elementType} (integer), @code{numEvaluationPoints} (integer), @code{allocateJacobians} (boolean), @code{allocateDeterminants} (boolean), @code{allocateCoord} (boolean), @code{tag = -1} (integer)
@item Output:
@code{jacobians} (vector of doubles), @code{determinants} (vector of doubles), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1188,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1043,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5002,Fortran}
@end table

@item gmsh/model/mesh/getJacobian
Get the Jacobian for a single element @code{elementTag}, at the G evaluation points @code{localCoord} given as concatenated u, v, w coordinates in the reference element [g1u, g1v, g1w, ..., gGu, gGv, gGw]. @code{jacobians} contains the 9 entries of the 3x3 Jacobian matrix at each evaluation point. The matrix is returned by column: [e1g1Jxu, e1g1Jyu, e1g1Jzu, e1g1Jxv, ..., e1g1Jzw, e1g2Jxu, ..., e1gGJzw, e2g1Jxu, ...], with Jxu = dx/du, Jyu = dy/du, etc. @code{determinants} contains the determinant of the Jacobian matrix at each evaluation point. @code{coord} contains the x, y, z coordinates of the evaluation points. This function relies on an internal cache (a vector in case of dense element numbering, a map otherwise); for large meshes accessing Jacobians in bulk is often preferable.

@table @asis
@item Input:
@code{elementTag} (size), @code{localCoord} (vector of doubles)
@item Output:
@code{jacobians} (vector of doubles), @code{determinants} (vector of doubles), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1211,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1065,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3401,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2965,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5091,Fortran}
@end table

@item gmsh/model/mesh/getBasisFunctions
Get the basis functions of the element of type @code{elementType} at the evaluation points @code{localCoord} (given as concatenated u, v, w coordinates in the reference element [g1u, g1v, g1w, ..., gGu, gGv, gGw]), for the function space @code{functionSpaceType}. Currently supported function spaces include "Lagrange" and "GradLagrange" for isoparametric Lagrange basis functions and their gradient in the u, v, w coordinates of the reference element; "LagrangeN" and "GradLagrangeN", with N = 1, 2, ..., for N-th order Lagrange basis functions; "H1LegendreN" and "GradH1LegendreN", with N = 1, 2, ..., for N-th order hierarchical H1 Legendre functions; "HcurlLegendreN" and "CurlHcurlLegendreN", with N = 1, 2, ..., for N-th order curl-conforming basis functions. @code{numComponents} returns the number C of components of a basis function (e.g. 1 for scalar functions and 3 for vector functions). @code{basisFunctions} returns the value of the N basis functions at the evaluation points, i.e. [g1f1, g1f2, ..., g1fN, g2f1, ...] when C == 1 or [g1f1u, g1f1v, g1f1w, g1f2u, ..., g1fNw, g2f1u, ...] when C == 3. For basis functions that depend on the orientation of the elements, all values for the first orientation are returned first, followed by values for the second, etc. @code{numOrientations} returns the overall number of orientations. If the @code{wantedOrientations} vector is not empty, only return the values for the desired orientation indices.

@table @asis
@item Input:
@code{elementType} (integer), @code{localCoord} (vector of doubles), @code{functionSpaceType} (string), @code{wantedOrientations = []} (vector of integers)
@item Output:
@code{numComponents} (integer), @code{basisFunctions} (vector of doubles), @code{numOrientations} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1239,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1092,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3447,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3018,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5172,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L57,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L32,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L114,poisson.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L57,x6.jl})
@end table

@item gmsh/model/mesh/getBasisFunctionsOrientation
Get the orientation index of the elements of type @code{elementType} in the entity of tag @code{tag}. The arguments have the same meaning as in @code{getBasisFunctions}. @code{basisFunctionsOrientation} is a vector giving for each element the orientation index in the values returned by @code{getBasisFunctions}. For Lagrange basis functions the call is superfluous as it will return a vector of zeros. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vector must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{functionSpaceType} (string), @code{tag = -1} (integer), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{basisFunctionsOrientation} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1257,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1109,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3507,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3054,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5240,Fortran}
@end table

@item gmsh/model/mesh/getBasisFunctionsOrientation@-ForElement
Get the orientation of a single element @code{elementTag}.

@table @asis
@item Input:
@code{elementTag} (size), @code{functionSpaceType} (string)
@item Output:
@code{basisFunctionsOrientation} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1267,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1118,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3546,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3079,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5290,Fortran}
@end table

@item gmsh/model/mesh/getNumberOfOrientations
Get the number of possible orientations for elements of type @code{elementType} and function space named @code{functionSpaceType}.

@table @asis
@item Input:
@code{elementType} (integer), @code{functionSpaceType} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1275,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1125,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3572,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3102,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5319,Fortran}
@end table

@item gmsh/model/mesh/preallocateBasisFunctions@-Orientation
Preallocate data before calling @code{getBasisFunctionsOrientation} with @code{numTasks} > 1. For C++ only.

@table @asis
@item Input:
@code{elementType} (integer), @code{tag = -1} (integer)
@item Output:
@code{basisFunctionsOrientation} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1282,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1131,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5345,Fortran}
@end table

@item gmsh/model/mesh/getEdges
Get the global unique mesh edge identifiers @code{edgeTags} and orientations @code{edgeOrientation} for an input list of node tag pairs defining these edges, concatenated in the vector @code{nodeTags}. Mesh edges are created e.g. by @code{createEdges()}, @code{getKeys()} or @code{addEdges()}. The reference positive orientation is n1 < n2, where n1 and n2 are the tags of the two edge nodes, which corresponds to the local orientation of edge-based basis functions as well.

@table @asis
@item Input:
@code{nodeTags} (vector of sizes)
@item Output:
@code{edgeTags} (vector of sizes), @code{edgeOrientations} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1295,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1143,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3596,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3129,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5386,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L51,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L44,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L43,x7.jl})
@end table

@item gmsh/model/mesh/getFaces
Get the global unique mesh face identifiers @code{faceTags} and orientations @code{faceOrientations} for an input list of a multiple of three (if @code{faceType} == 3) or four (if @code{faceType} == 4) node tags defining these faces, concatenated in the vector @code{nodeTags}. Mesh faces are created e.g. by @code{createFaces()}, @code{getKeys()} or @code{addFaces()}.

@table @asis
@item Input:
@code{faceType} (integer), @code{nodeTags} (vector of sizes)
@item Output:
@code{faceTags} (vector of sizes), @code{faceOrientations} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1306,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1153,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3632,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3162,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5435,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L52,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L45,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_cavity.py#L38,remesh_cavity.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L44,x7.jl})
@end table

@item gmsh/model/mesh/createEdges
Create unique mesh edges for the entities @code{dimTags}, given as a vector of (dim, tag) pairs.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1315,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1161,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3668,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3187,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5486,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L45,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L40,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L39,x7.jl})
@end table

@item gmsh/model/mesh/createFaces
Create unique mesh faces for the entities @code{dimTags}, given as a vector of (dim, tag) pairs.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1321,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1166,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3688,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3208,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5508,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L46,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L41,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_cavity.py#L37,remesh_cavity.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L40,x7.jl})
@end table

@item gmsh/model/mesh/getAllEdges
Get the global unique identifiers @code{edgeTags} and the nodes @code{edgeNodes} of the edges in the mesh. Mesh edges are created e.g. by @code{createEdges()}, @code{getKeys()} or addEdges().

@table @asis
@item Input:
-
@item Output:
@code{edgeTags} (vector of sizes), @code{edgeNodes} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1328,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1172,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3708,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3233,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5531,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L103,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L98,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L103,x7.jl})
@end table

@item gmsh/model/mesh/getAllFaces
Get the global unique identifiers @code{faceTags} and the nodes @code{faceNodes} of the faces of type @code{faceType} in the mesh. Mesh faces are created e.g. by @code{createFaces()}, @code{getKeys()} or addFaces().

@table @asis
@item Input:
@code{faceType} (integer)
@item Output:
@code{faceTags} (vector of sizes), @code{faceNodes} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1336,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1179,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3737,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3263,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5570,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L104,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L99,x7.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L104,x7.jl})
@end table

@item gmsh/model/mesh/addEdges
Add mesh edges defined by their global unique identifiers @code{edgeTags} and their nodes @code{edgeNodes}.

@table @asis
@item Input:
@code{edgeTags} (vector of sizes), @code{edgeNodes} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1344,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1186,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3768,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3289,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5613,Fortran}
@end table

@item gmsh/model/mesh/addFaces
Add mesh faces of type @code{faceType} defined by their global unique identifiers @code{faceTags} and their nodes @code{faceNodes}.

@table @asis
@item Input:
@code{faceType} (integer), @code{faceTags} (vector of sizes), @code{faceNodes} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1351,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1192,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3791,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3310,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5643,Fortran}
@end table

@item gmsh/model/mesh/getKeys
Generate the pair of keys for the elements of type @code{elementType} in the entity of tag @code{tag}, for the @code{functionSpaceType} function space. Each pair (@code{typeKey}, @code{entityKey}) uniquely identifies a basis function in the function space. If @code{returnCoord} is set, the @code{coord} vector contains the x, y, z coordinates locating basis functions for sorting purposes. Warning: this is an experimental feature and will probably change in a future release.

@table @asis
@item Input:
@code{elementType} (integer), @code{functionSpaceType} (string), @code{tag = -1} (integer), @code{returnCoord = True} (boolean)
@item Output:
@code{typeKeys} (vector of integers), @code{entityKeys} (vector of sizes), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1364,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1204,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3816,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3341,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5683,Fortran}
@end table

@item gmsh/model/mesh/getKeysForElement
Get the pair of keys for a single element @code{elementTag}.

@table @asis
@item Input:
@code{elementTag} (size), @code{functionSpaceType} (string), @code{returnCoord = True} (boolean)
@item Output:
@code{typeKeys} (vector of integers), @code{entityKeys} (vector of sizes), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1375,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1214,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3861,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3375,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5752,Fortran}
@end table

@item gmsh/model/mesh/getNumberOfKeys
Get the number of keys by elements of type @code{elementType} for function space named @code{functionSpaceType}.

@table @asis
@item Input:
@code{elementType} (integer), @code{functionSpaceType} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1386,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1224,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3898,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3406,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5817,Fortran}
@end table

@item gmsh/model/mesh/getKeysInformation
Get information about the pair of @code{keys}. @code{infoKeys} returns information about the functions associated with the pairs (@code{typeKeys}, @code{entityKey}). @code{infoKeys[0].first} describes the type of function (0 for  vertex function, 1 for edge function, 2 for face function and 3 for bubble function). @code{infoKeys[0].second} gives the order of the function associated with the key. Warning: this is an experimental feature and will probably change in a future release.

@table @asis
@item Input:
@code{typeKeys} (vector of integers), @code{entityKeys} (vector of sizes), @code{elementType} (integer), @code{functionSpaceType} (string)
@item Output:
@code{infoKeys} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1398,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1235,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3922,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3436,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5848,Fortran}
@end table

@item gmsh/model/mesh/getBarycenters
Get the barycenters of all elements of type @code{elementType} classified on the entity of tag @code{tag}. If @code{primary} is set, only the primary nodes of the elements are taken into account for the barycenter calculation. If @code{fast} is set, the function returns the sum of the primary node coordinates (without normalizing by the number of nodes). If @code{tag} < 0, get the barycenters for all entities. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vector must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{tag} (integer), @code{fast} (boolean), @code{primary} (boolean), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{barycenters} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1414,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1250,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3960,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3472,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5906,Fortran}
@end table

@item gmsh/model/mesh/preallocateBarycenters
Preallocate data before calling @code{getBarycenters} with @code{numTasks} > 1. For C++ only.

@table @asis
@item Input:
@code{elementType} (integer), @code{tag = -1} (integer)
@item Output:
@code{barycenters} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1426,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1261,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L5962,Fortran}
@end table

@item gmsh/model/mesh/getElementEdgeNodes
Get the nodes on the edges of all elements of type @code{elementType} classified on the entity of tag @code{tag}. @code{nodeTags} contains the node tags of the edges for all the elements: [e1a1n1, e1a1n2, e1a2n1, ...]. Data is returned by element, with elements in the same order as in @code{getElements} and @code{getElementsByType}. If @code{primary} is set, only the primary (begin/end) nodes of the edges are returned. If @code{tag} < 0, get the edge nodes for all entities. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vector must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{tag = -1} (integer), @code{primary = False} (boolean), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{nodeTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1440,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1274,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4001,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3507,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6004,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L34,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L30,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L23,stl_to_brep.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L29,x7.jl})
@end table

@item gmsh/model/mesh/getElementFaceNodes
Get the nodes on the faces of type @code{faceType} (3 for triangular faces, 4 for quadrangular faces) of all elements of type @code{elementType} classified on the entity of tag @code{tag}. @code{nodeTags} contains the node tags of the faces for all elements: [e1f1n1, ..., e1f1nFaceType, e1f2n1, ...]. Data is returned by element, with elements in the same order as in @code{getElements} and @code{getElementsByType}. If @code{primary} is set, only the primary (corner) nodes of the faces are returned. If @code{tag} < 0, get the face nodes for all entities. If @code{numTasks} > 1, only compute and return the part of the data indexed by @code{task} (for C++ only; output vector must be preallocated).

@table @asis
@item Input:
@code{elementType} (integer), @code{faceType} (integer), @code{tag = -1} (integer), @code{primary = False} (boolean), @code{task = 0} (size), @code{numTasks = 1} (size)
@item Output:
@code{nodeTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1458,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1291,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4040,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3544,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6062,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L35,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L31,x7.py}, @url{@value{GITLAB-PREFIX}/examples/api/neighbors.py#L16,neighbors.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_cavity.py#L36,remesh_cavity.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L30,x7.jl})
@end table

@item gmsh/model/mesh/getGhostElements
Get the ghost elements @code{elementTags} and their associated @code{partitions} stored in the ghost entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{elementTags} (vector of sizes), @code{partitions} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1470,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1302,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4082,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3571,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6118,Fortran}
@end table

@item gmsh/model/mesh/setSize
Set a mesh size constraint on the model entities @code{dimTags}, given as a vector of (dim, tag) pairs. Currently only entities of dimension 0 (points) are handled.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{size} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1480,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1311,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4114,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3597,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6167,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L125,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L32,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L47,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L105,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L29,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L35,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L80,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/extend_field.py#L18,extend_field.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L107,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L26,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L34,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L135,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L40,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L47,t21.f90})
@end table

@item gmsh/model/mesh/getSizes
Get the mesh size constraints (if any) associated with the model entities @code{dimTags}, given as a vector of (dim, tag) pairs. A zero entry in the output @code{sizes} vector indicates that no size constraint is specified on the corresponding entity.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers)
@item Output:
@code{sizes} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1489,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1319,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4137,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3623,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6196,Fortran}
@end table

@item gmsh/model/mesh/setSizeAtParametricPoints
Set mesh size constraints at the given parametric points @code{parametricCoord} on the model entity of dimension @code{dim} and tag @code{tag}. Currently only entities of dimension 1 (lines) are handled.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{parametricCoord} (vector of doubles), @code{sizes} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1497,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1326,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4165,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3651,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6231,Fortran}
@end table

@item gmsh/model/mesh/setSizeCallback
Set a mesh size callback for the current model. The callback function should take six arguments as input (@code{dim}, @code{tag}, @code{x}, @code{y}, @code{z} and @code{lc}). The first two integer arguments correspond to the dimension @code{dim} and tag @code{tag} of the entity being meshed. The next four double precision arguments correspond to the coordinates @code{x}, @code{y} and @code{z} around which to prescribe the mesh size and to the mesh size @code{lc} that would be prescribed if the callback had not been called. The callback function should return a double precision number specifying the desired mesh size; returning @code{lc} is equivalent to a no-op.

@table @asis
@item Input:
@code{callback} ()
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1513,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1341,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4193,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3676,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6278,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L117,t10.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L109,t10.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L108,t10.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L113,t10.f90})
@end table

@item gmsh/model/mesh/removeSizeCallback
Remove the mesh size callback from the current model.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1518,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1345,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4223,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3693,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6296,Fortran}
@end table

@item gmsh/model/mesh/setTransfiniteCurve
Set a transfinite meshing constraint on the curve @code{tag}, with @code{numNodes} nodes distributed according to @code{meshType} and @code{coef}. Currently supported types are "Progression" (geometrical progression with power @code{coef}), "Bump" (refinement toward both extremities of the curve) and "Beta" (beta law).

@table @asis
@item Input:
@code{tag} (integer), @code{numNodes} (integer), @code{meshType = "Progression"} (string), @code{coef = 1.} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1527,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1351,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4237,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3717,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6312,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L155,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L151,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L149,terrain.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L43,terrain_bspline.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L78,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L155,x2.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L43,terrain_bspline.jl})
@end table

@item gmsh/model/mesh/setTransfiniteSurface
Set a transfinite meshing constraint on the surface @code{tag}. @code{arrangement} describes the arrangement of the triangles when the surface is not flagged as recombined: currently supported values are "Left", "Right", "AlternateLeft" and "AlternateRight". @code{cornerTags} can be used to specify the (3 or 4) corners of the transfinite interpolation explicitly; specifying the corners explicitly is mandatory if the surface has more that 3 or 4 points on its boundary.

@table @asis
@item Input:
@code{tag} (integer), @code{arrangement = "Left"} (string), @code{cornerTags = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1541,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1364,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4264,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3742,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6351,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L158,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L153,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/get_data_perf.py#L11,get_data_perf.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L151,terrain.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L45,terrain_bspline.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L80,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L158,x2.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L45,terrain_bspline.jl})
@end table

@item gmsh/model/mesh/setTransfiniteVolume
Set a transfinite meshing constraint on the surface @code{tag}. @code{cornerTags} can be used to specify the (6 or 8) corners of the transfinite interpolation explicitly.

@table @asis
@item Input:
@code{tag} (integer), @code{cornerTags = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1550,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1372,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4293,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3763,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6384,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L162,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L156,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L154,terrain.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L48,terrain_bspline.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L83,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L162,x2.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L50,terrain_bspline.jl})
@end table

@item gmsh/model/mesh/setTransfiniteAutomatic
Set transfinite meshing constraints on the model entities in @code{dimTags}, given as a vector of (dim, tag) pairs. Transfinite meshing constraints are added to the curves of the quadrangular surfaces and to the faces of 6-sided volumes. Quadragular faces with a corner angle superior to @code{cornerAngle} (in radians) are ignored. The number of points is automatically determined from the sizing constraints. If @code{dimTag} is empty, the constraints are applied to all entities in the model. If @code{recombine} is true, the recombine flag is automatically set on the transfinite surfaces.  

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers), @code{cornerAngle = 2.35} (double), @code{recombine = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1564,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1384,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4316,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3790,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6417,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L169,x2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x6.cpp#L22,x6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L162,x2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L21,x6.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L168,x2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L20,x6.jl})
@end table

@item gmsh/model/mesh/setRecombine
Set a recombination meshing constraint on the model entity of dimension @code{dim} and tag @code{tag}. Currently only entities of dimension 2 (to recombine triangles into quadrangles) are supported; @code{angle} specifies the threshold angle for the simple recombination algorithm..

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{angle = 45.} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1574,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1393,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4346,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3815,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6451,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t11.cpp#L44,t11.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L159,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t11.py#L42,t11.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L154,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L238,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L152,terrain.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L46,terrain_bspline.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t11.jl#L41,t11.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L159,x2.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L46,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t11.f90#L50,t11.f90})
@end table

@item gmsh/model/mesh/setSmoothing
Set a smoothing meshing constraint on the model entity of dimension @code{dim} and tag @code{tag}. @code{val} iterations of a Laplace smoother are applied.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1582,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1400,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4371,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3836,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6480,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L160,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L155,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L153,terrain.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L47,terrain_bspline.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L82,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L160,x2.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L47,terrain_bspline.jl})
@end table

@item gmsh/model/mesh/setReverse
Set a reverse meshing constraint on the model entity of dimension @code{dim} and tag @code{tag}. If @code{val} is true, the mesh orientation will be reversed with respect to the natural mesh orientation (i.e. the orientation consistent with the orientation of the geometry). If @code{val} is false, the mesh is left as-is.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1593,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1410,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4394,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3859,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6512,Fortran}
@end table

@item gmsh/model/mesh/setAlgorithm
Set the meshing algorithm on the model entity of dimension @code{dim} and tag @code{tag}. Supported values are those of the @code{Mesh.Algorithm} option, as listed in the Gmsh reference manual. Currently only supported for @code{dim} == 2.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1603,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1418,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4420,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3881,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6542,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L207,t5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L201,t5.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L198,t5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L153,t5.f90})
@end table

@item gmsh/model/mesh/setSizeFromBoundary
Force the mesh size to be extended from the boundary, or not, for the model entity of dimension @code{dim} and tag @code{tag}. Currently only supported for @code{dim} == 2.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1612,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1426,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4444,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3903,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6572,Fortran}
@end table

@item gmsh/model/mesh/setCompound
Set a compound meshing constraint on the model entities of dimension @code{dim} and tags @code{tags}. During meshing, compound entities are treated as a single discrete entity, which is automatically reparametrized.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1621,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1434,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4468,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3924,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6602,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t12.cpp#L83,t12.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t12.py#L79,t12.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t12.jl#L78,t12.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t12.f90#L85,t12.f90})
@end table

@item gmsh/model/mesh/setOutwardOrientation
Set meshing constraints on the bounding surfaces of the volume of tag @code{tag} so that all surfaces are oriented with outward pointing normals; and if a mesh already exists, reorient it. Currently only available with the OpenCASCADE kernel, as it relies on the STL triangulation.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1630,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1442,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4491,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3945,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6631,Fortran}
@end table

@item gmsh/model/mesh/removeConstraints
Remove all meshing constraints from the model entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, remove all constraings.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1637,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1448,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4512,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3964,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6651,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L51,terrain_bspline.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L53,terrain_bspline.jl})
@end table

@item gmsh/model/mesh/embed
Embed the model entities of dimension @code{dim} and tags @code{tags} in the (@code{inDim}, @code{inTag}) model entity. The dimension @code{dim} can 0, 1 or 2 and must be strictly smaller than @code{inDim}, which must be either 2 or 3. The embedded entities should not intersect each other or be part of the boundary of the entity @code{inTag}, whose mesh will conform to the mesh of the embedded entities. With the OpenCASCADE kernel, if the @code{fragment} operation is applied to entities of different dimensions, the lower dimensional entities will be automatically embedded in the higher dimensional entities if they are not on their boundary.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers), @code{inDim} (integer), @code{inTag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1650,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1460,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4533,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3994,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6680,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t15.cpp#L51,t15.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t15.py#L47,t15.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t15.jl#L46,t15.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t15.f90#L56,t15.f90})
@end table

@item gmsh/model/mesh/removeEmbedded
Remove embedded entities from the model entities @code{dimTags}, given as a vector of (dim, tag) pairs. if @code{dim} is >= 0, only remove embedded entities of the given dimension (e.g. embedded points if @code{dim} == 0).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{dim = -1} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1660,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1469,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4565,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4014,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6718,Fortran}
@end table

@item gmsh/model/mesh/getEmbedded
Get the entities (if any) embedded in the model entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1667,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1475,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4588,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4039,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6745,Fortran}
@end table

@item gmsh/model/mesh/reorderElements
Reorder the elements of type @code{elementType} classified on the entity of tag @code{tag} according to the @code{ordering} vector.

@table @asis
@item Input:
@code{elementType} (integer), @code{tag} (integer), @code{ordering} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1675,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1482,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4615,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4064,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6781,Fortran}
@end table

@item gmsh/model/mesh/computeRenumbering
Compute a renumbering vector @code{newTags} corresponding to the input tags @code{oldTags} for a given list of element tags @code{elementTags}. If @code{elementTags} is empty, compute the renumbering on the full mesh. If @code{method} is equal to "RCMK", compute a node renumering with Reverse Cuthill McKee. If @code{method} is equal to "Hilbert", compute a node renumering along a Hilbert curve. If @code{method} is equal to "Metis", compute a node renumering using Metis. Element renumbering is not available yet.

@table @asis
@item Input:
@code{method = "RCMK"} (string), @code{elementTags = []} (vector of sizes)
@item Output:
@code{oldTags} (vector of sizes), @code{newTags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1688,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1494,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4639,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4093,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6818,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/renumbering.py#L16,renumbering.py})
@end table

@item gmsh/model/mesh/renumberNodes
Renumber the node tags. If no explicit renumbering is provided through the @code{oldTags} and @code{newTags} vectors, renumber the nodes in a continuous sequence, taking into account the subset of elements to be saved later on if the option "Mesh.SaveAll" is not set.

@table @asis
@item Input:
@code{oldTags = []} (vector of sizes), @code{newTags = []} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1699,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1504,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4677,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4121,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6871,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/renumbering.py#L17,renumbering.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_renumbering.py#L31,view_renumbering.py})
@end table

@item gmsh/model/mesh/renumberElements
Renumber the element tags in a continuous sequence. If no explicit renumbering is provided through the @code{oldTags} and @code{newTags} vectors, renumber the elements in a continuous sequence, taking into account the subset of elements to be saved later on if the option "Mesh.SaveAll" is not set.

@table @asis
@item Input:
@code{oldTags = []} (vector of sizes), @code{newTags = []} (vector of sizes)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1709,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1513,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4702,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4143,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6904,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/view_renumbering.py#L32,view_renumbering.py})
@end table

@item gmsh/model/mesh/setPeriodic
Set the meshes of the entities of dimension @code{dim} and tag @code{tags} as periodic copies of the meshes of entities @code{tagsMaster}, using the affine transformation specified in @code{affineTransformation} (16 entries of a 4x4 matrix, by row). If used after meshing, generate the periodic node correspondence information assuming the meshes of entities @code{tags} effectively match the meshes of entities @code{tagsMaster} (useful for structured and extruded meshes). Currently only available for @code{dim} == 1 and @code{dim} == 2.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers), @code{tagsMaster} (vector of integers), @code{affineTransform} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1722,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1525,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4728,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4170,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6940,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L40,t18.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L36,t18.py}, @url{@value{GITLAB-PREFIX}/examples/api/periodic.py#L13,periodic.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L33,t18.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L48,t18.f90})
@end table

@item gmsh/model/mesh/getPeriodic
Get master entities @code{tagsMaster} for the entities of dimension @code{dim} and tags @code{tags}.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers)
@item Output:
@code{tagMaster} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1731,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1533,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4762,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4193,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L6983,Fortran}
@end table

@item gmsh/model/mesh/getPeriodicNodes
Get the master entity @code{tagMaster}, the node tags @code{nodeTags} and their corresponding master node tags @code{nodeTagsMaster}, and the affine transform @code{affineTransform} for the entity of dimension @code{dim} and tag @code{tag}. If @code{includeHighOrderNodes} is set, include high-order nodes in the returned data.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{includeHighOrderNodes = False} (boolean)
@item Output:
@code{tagMaster} (integer), @code{nodeTags} (vector of sizes), @code{nodeTagsMaster} (vector of sizes), @code{affineTransform} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1742,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1543,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4790,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4225,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7025,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/periodic.py#L19,periodic.py})
@end table

@item gmsh/model/mesh/getPeriodicKeys
Get the master entity @code{tagMaster} and the key pairs (@code{typeKeyMaster}, @code{entityKeyMaster}) corresponding to the entity @code{tag} and the key pairs (@code{typeKey}, @code{entityKey}) for the elements of type @code{elementType} and function space type @code{functionSpaceType}. If @code{returnCoord} is set, the @code{coord} and @code{coordMaster} vectors contain the x, y, z coordinates locating basis functions for sorting purposes.

@table @asis
@item Input:
@code{elementType} (integer), @code{functionSpaceType} (string), @code{tag} (integer), @code{returnCoord = True} (boolean)
@item Output:
@code{tagMaster} (integer), @code{typeKeys} (vector of integers), @code{typeKeysMaster} (vector of integers), @code{entityKeys} (vector of sizes), @code{entityKeysMaster} (vector of sizes), @code{coord} (vector of doubles), @code{coordMaster} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1758,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1558,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4835,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4270,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7099,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/periodic.py#L23,periodic.py})
@end table

@item gmsh/model/mesh/importStl
Import the model STL representation (if available) as the current mesh.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1773,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1572,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4895,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4304,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7209,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/stl_to_mesh.py#L20,stl_to_mesh.py})
@end table

@item gmsh/model/mesh/getDuplicateNodes
Get the @code{tags} of any duplicate nodes in the mesh of the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, consider the whole mesh.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
@code{tags} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1780,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1577,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4909,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4327,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7224,Fortran}
@end table

@item gmsh/model/mesh/removeDuplicateNodes
Remove duplicate nodes in the mesh of the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, consider the whole mesh.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1788,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1583,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4936,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4351,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7258,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/glue_and_remesh_stl.py#L15,glue_and_remesh_stl.py}, @url{@value{GITLAB-PREFIX}/examples/api/mirror_mesh.py#L55,mirror_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_mesh.py#L21,stl_to_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_adaptive_to_mesh.py#L74,view_adaptive_to_mesh.py})
@end table

@item gmsh/model/mesh/removeDuplicateElements
Remove duplicate elements (defined by the same nodes, in the same entity) in the mesh of the entities @code{dimTags}, given as a vector of (dim, tag) pairs. If @code{dimTags} is empty, consider the whole mesh.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1795,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1589,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4956,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4373,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7281,Fortran}
@end table

@item gmsh/model/mesh/splitQuadrangles
Split (into two triangles) all quadrangles in surface @code{tag} whose quality is lower than @code{quality}. If @code{tag} < 0, split quadrangles in all surfaces.

@table @asis
@item Input:
@code{quality = 1.} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1801,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1594,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4977,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4395,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7303,Fortran}
@end table

@item gmsh/model/mesh/setVisibility
Set the visibility of the elements of tags @code{elementTags} to @code{value}.

@table @asis
@item Input:
@code{elementTags} (vector of sizes), @code{value} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1807,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1599,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4998,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4414,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7326,Fortran}
@end table

@item gmsh/model/mesh/getVisibility
Get the visibility of the elements of tags @code{elementTags}.

@table @asis
@item Input:
@code{elementTags} (vector of sizes)
@item Output:
@code{values} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1813,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1604,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5019,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4435,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7352,Fortran}
@end table

@item gmsh/model/mesh/classifySurfaces
Classify ("color") the surface mesh based on the angle threshold @code{angle} (in radians), and create new discrete surfaces, curves and points accordingly. If @code{boundary} is set, also create discrete curves on the boundary if the surface is open. If @code{forReparametrization} is set, create curves and surfaces that can be reparametrized using a single map. If @code{curveAngle} is less than Pi, also force curves to be split according to @code{curveAngle}. If @code{exportDiscrete} is set, clear any built-in CAD kernel entities and export the discrete entities in the built-in CAD kernel.

@table @asis
@item Input:
@code{angle} (double), @code{boundary = True} (boolean), @code{forReparametrization = False} (boolean), @code{curveAngle = pi} (double), @code{exportDiscrete = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1826,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1616,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5044,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4467,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7392,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L53,t13.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L44,t13.py}, @url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L12,aneurysm.py}, @url{@value{GITLAB-PREFIX}/examples/api/glue_and_remesh_stl.py#L19,glue_and_remesh_stl.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_stl.py#L22,remesh_stl.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L16,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L40,t13.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L94,t13.f90})
@end table

@item gmsh/model/mesh/createGeometry
Create a geometry for the discrete entities @code{dimTags} (given as a vector of (dim, tag) pairs) represented solely by a mesh (without an underlying CAD description), i.e. create a parametrization for discrete curves and surfaces, assuming that each can be parametrized with a single map. If @code{dimTags} is empty, create a geometry for all the discrete entities.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1839,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1628,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5077,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4489,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7434,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L59,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L111,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L50,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L106,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L13,aneurysm.py}, @url{@value{GITLAB-PREFIX}/examples/api/glue_and_remesh_stl.py#L32,glue_and_remesh_stl.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_cavity.py#L73,remesh_cavity.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L46,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L110,x2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L100,t13.f90})
@end table

@item gmsh/model/mesh/createTopology
Create a boundary representation from the mesh if the model does not have one (e.g. when imported from mesh file formats with no BRep representation of the underlying model). If @code{makeSimplyConnected} is set, enforce simply connected discrete surfaces and volumes. If @code{exportDiscrete} is set, clear any built-in CAD kernel entities and export the discrete entities in the built-in CAD kernel.

@table @asis
@item Input:
@code{makeSimplyConnected = True} (boolean), @code{exportDiscrete = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1849,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1637,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5100,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4514,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7460,Fortran}
@end table

@item gmsh/model/mesh/addHomologyRequest
Add a request to compute a basis representation for homology spaces (if @code{type} == "Homology") or cohomology spaces (if @code{type} == "Cohomology"). The computation domain is given in a list of physical group tags @code{domainTags}; if empty, the whole mesh is the domain. The computation subdomain for relative (co)homology computation is given in a list of physical group tags @code{subdomainTags}; if empty, absolute (co)homology is computed. The dimensions of the (co)homology bases to be computed are given in the list @code{dim}; if empty, all bases are computed. Resulting basis representation (co)chains are stored as physical groups in the mesh. If the request is added before mesh generation, the computation will be performed at the end of the meshing pipeline.

@table @asis
@item Input:
@code{type = "Homology"} (string), @code{domainTags = []} (vector of integers), @code{subdomainTags = []} (vector of integers), @code{dims = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1865,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1652,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5125,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4544,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7493,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t14.cpp#L112,t14.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t14.py#L101,t14.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t14.jl#L104,t14.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t14.f90#L116,t14.f90})
@end table

@item gmsh/model/mesh/clearHomologyRequests
Clear all (co)homology computation requests.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1873,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1659,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5162,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4559,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7535,Fortran}
@end table

@item gmsh/model/mesh/computeHomology
Perform the (co)homology computations requested by addHomologyRequest(). The newly created physical groups are returned in @code{dimTags} as a vector of (dim, tag) pairs.

@table @asis
@item Input:
-
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1880,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1664,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5176,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4581,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7550,Fortran}
@end table

@item gmsh/model/mesh/computeCrossField
Compute a cross field for the current mesh. The function creates 3 views: the H function, the Theta function and cross directions. Return the tags of the views.

@table @asis
@item Input:
-
@item Output:
@code{viewTags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1887,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1670,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5200,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4606,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7577,Fortran}
@end table

@end ftable

@node Namespace gmsh/model/mesh/field, Namespace gmsh/model/geo, Namespace gmsh/model/mesh, Gmsh application programming interface
@section Namespace @code{gmsh/model/mesh/field}: mesh size field functions

@ftable @code
@item gmsh/model/mesh/field/add
Add a new mesh size field of type @code{fieldType}. If @code{tag} is positive, assign the tag explicitly; otherwise a new tag is assigned automatically. Return the field tag. Available field types are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-mesh-size-fields,"Gmsh mesh size fields" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{fieldType} (string), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1898,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1678,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5230,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4643,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7606,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L50,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L47,t10.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t11.cpp#L38,t11.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L83,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L41,t17.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t7.py#L43,t7.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L43,t10.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L71,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L35,t17.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L114,adapt_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t7.jl#L40,t7.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L42,t10.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L67,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L31,t17.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t7.f90#L48,t7.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L49,t10.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L121,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L39,t17.f90})
@end table

@item gmsh/model/mesh/field/remove
Remove the field with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1904,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1683,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5256,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4660,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7631,Fortran}
@end table

@item gmsh/model/mesh/field/list
Get the list of all fields.

@table @asis
@item Input:
-
@item Output:
@code{tags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1909,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1687,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5273,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4679,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7649,Fortran}
@end table

@item gmsh/model/mesh/field/getType
Get the type @code{fieldType} of the field with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
@code{fileType} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1914,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1691,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5294,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4702,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7674,Fortran}
@end table

@item gmsh/model/mesh/field/setNumber
Set the numerical option @code{option} to value @code{value} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string), @code{value} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1920,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1696,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5318,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4724,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7699,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L51,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L50,t10.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L42,t17.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t7.py#L44,t7.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L46,t10.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L36,t17.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L115,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L47,copy_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t7.jl#L41,t7.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L45,t10.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L32,t17.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t7.f90#L49,t7.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L52,t10.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L40,t17.f90})
@end table

@item gmsh/model/mesh/field/getNumber
Get the value of the numerical option @code{option} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string)
@item Output:
@code{value} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1927,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1702,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5340,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4746,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7727,Fortran}
@end table

@item gmsh/model/mesh/field/setString
Set the string option @code{option} to value @code{value} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string), @code{value} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1934,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1708,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5366,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4767,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7755,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L74,t10.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t11.cpp#L39,t11.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L86,t13.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L69,t10.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L73,t13.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L68,t10.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L69,t13.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L75,t10.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L124,t13.f90})
@end table

@item gmsh/model/mesh/field/getString
Get the value of the string option @code{option} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string)
@item Output:
@code{value} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1941,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1714,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5388,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4789,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7783,Fortran}
@end table

@item gmsh/model/mesh/field/setNumbers
Set the numerical list option @code{option} to value @code{values} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string), @code{values} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1949,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1720,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5414,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4811,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7813,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L48,t10.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L44,t10.py}, @url{@value{GITLAB-PREFIX}/examples/api/extend_field.py#L23,extend_field.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L122,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/ocean.py#L4544,ocean.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L43,t10.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L50,t10.f90})
@end table

@item gmsh/model/mesh/field/getNumbers
Get the value of the numerical list option @code{option} for field @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{option} (string)
@item Output:
@code{values} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1956,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1726,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5437,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4833,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7844,Fortran}
@end table

@item gmsh/model/mesh/field/setAsBackgroundMesh
Set the field @code{tag} as the background mesh size field.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1963,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1732,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5463,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4854,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7879,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L54,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t10.cpp#L109,t10.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t11.cpp#L41,t11.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L89,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L43,t17.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t7.py#L47,t7.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t10.py#L102,t10.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L76,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L37,t17.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L116,adapt_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t7.jl#L44,t7.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t10.jl#L100,t10.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L73,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L33,t17.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t7.f90#L52,t7.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t10.f90#L109,t10.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L128,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L41,t17.f90})
@end table

@item gmsh/model/mesh/field/setAsBoundaryLayer
Set the field @code{tag} as a boundary layer size field.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1968,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1736,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5481,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4872,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7897,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L132,naca_boundary_layer_2d.py})
@end table

@end ftable

@node Namespace gmsh/model/geo, Namespace gmsh/model/geo/mesh, Namespace gmsh/model/mesh/field, Gmsh application programming interface
@section Namespace @code{gmsh/model/geo}: built-in CAD kernel functions

@ftable @code
@item gmsh/model/geo/addPoint
Add a geometrical point in the built-in CAD representation, at coordinates (@code{x}, @code{y}, @code{z}). If @code{meshSize} is > 0, add a meshing constraint at that point. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the point. (Note that the point will be added in the current model only after @code{synchronize} is called. This behavior holds for all the entities added in the geo module.)

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{meshSize = 0.} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1984,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1745,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5505,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4914,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7920,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L36,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L23,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L25,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L19,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L20,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L33,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L21,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L22,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L45,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L19,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L32,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L19,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L20,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L43,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L17,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L40,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L33,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L84,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L56,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L24,t6.f90}, ...)
@end table

@item gmsh/model/geo/addLine
Add a straight line segment in the built-in CAD representation, between the two points with tags @code{startTag} and @code{endTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the line.

@table @asis
@item Input:
@code{startTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1996,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1756,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5539,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4939,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7963,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L67,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L27,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L29,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L121,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L24,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L69,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L25,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L26,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L60,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L23,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L68,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L23,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L24,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L58,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L21,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L71,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L37,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L88,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L71,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L28,t6.f90}, ...)
@end table

@item gmsh/model/geo/addCircleArc
Add a circle arc (strictly smaller than Pi) in the built-in CAD representation, between the two points with tags @code{startTag} and @code{endTag}, and with center @code{centerTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If (@code{nx}, @code{ny}, @code{nz}) != (0, 0, 0), explicitly set the plane of the circle arc. Return the tag of the circle arc.

@table @asis
@item Input:
@code{startTag} (integer), @code{centerTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer), @code{nx = 0.} (double), @code{ny = 0.} (double), @code{nz = 0.} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2008,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1767,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5567,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4969,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L7998,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L27,t5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L119,t5.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L116,t5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L195,t5.f90})
@end table

@item gmsh/model/geo/addEllipseArc
Add an ellipse arc (strictly smaller than Pi) in the built-in CAD representation, between the two points @code{startTag} and @code{endTag}, and with center @code{centerTag} and major axis point @code{majorTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If (@code{nx}, @code{ny}, @code{nz}) != (0, 0, 0), explicitly set the plane of the circle arc. Return the tag of the ellipse arc.

@table @asis
@item Input:
@code{startTag} (integer), @code{centerTag} (integer), @code{majorTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer), @code{nx = 0.} (double), @code{ny = 0.} (double), @code{nz = 0.} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2024,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1782,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5605,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5001,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8053,Fortran}
@end table

@item gmsh/model/geo/addSpline
Add a spline (Catmull-Rom) curve in the built-in CAD representation, going through the points @code{pointTags}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Create a periodic curve if the first and last points are the same. Return the tag of the spline curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2040,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1797,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5645,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5025,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8112,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t12.cpp#L67,t12.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t12.py#L63,t12.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t12.jl#L62,t12.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t12.f90#L69,t12.f90})
@end table

@item gmsh/model/geo/addBSpline
Add a cubic b-spline curve in the built-in CAD representation, with @code{pointTags} control points. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Creates a periodic curve if the first and last points are the same. Return the tag of the b-spline curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2050,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1806,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5673,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5049,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8144,Fortran}
@end table

@item gmsh/model/geo/addBezier
Add a Bezier curve in the built-in CAD representation, with @code{pointTags} control points. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically.  Return the tag of the Bezier curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2058,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1813,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5701,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5072,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8174,Fortran}
@end table

@item gmsh/model/geo/addPolyline
Add a polyline curve in the built-in CAD representation, going through the points @code{pointTags}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Create a periodic curve if the first and last points are the same. Return the tag of the polyline curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2068,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1821,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5727,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5096,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8205,Fortran}
@end table

@item gmsh/model/geo/addCompoundSpline
Add a spline (Catmull-Rom) curve in the built-in CAD representation, going through points sampling the curves in @code{curveTags}. The density of sampling points on each curve is governed by @code{numIntervals}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the spline.

@table @asis
@item Input:
@code{curveTags} (vector of integers), @code{numIntervals = 5} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2078,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1830,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5754,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5122,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8237,Fortran}
@end table

@item gmsh/model/geo/addCompoundBSpline
Add a b-spline curve in the built-in CAD representation, with control points sampling the curves in @code{curveTags}. The density of sampling points on each curve is governed by @code{numIntervals}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the b-spline.

@table @asis
@item Input:
@code{curveTags} (vector of integers), @code{numIntervals = 20} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2089,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1840,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5784,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5147,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8274,Fortran}
@end table

@item gmsh/model/geo/addCurveLoop
Add a curve loop (a closed wire) in the built-in CAD representation, formed by the curves @code{curveTags}. @code{curveTags} should contain (signed) tags of model entities of dimension 1 forming a closed loop: a negative tag signifies that the underlying curve is considered with reversed orientation. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{reorient} is set, automatically reorient the curves if necessary. Return the tag of the curve loop.

@table @asis
@item Input:
@code{curveTags} (vector of integers), @code{tag = -1} (integer), @code{reorient = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2102,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1852,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5814,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5175,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8313,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L80,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L31,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L33,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L40,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L28,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L81,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L29,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L30,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L82,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L27,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L80,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L27,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L28,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L80,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L25,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L83,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L41,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L92,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L93,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L32,t6.f90}, ...)
@end table

@item gmsh/model/geo/addCurveLoops
Add curve loops in the built-in CAD representation based on the curves @code{curveTags}. Return the @code{tags} of found curve loops, if any.

@table @asis
@item Input:
@code{curveTags} (vector of integers)
@item Output:
@code{tags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2110,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1859,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5846,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5197,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8347,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L43,aneurysm.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L39,tube_boundary_layer.py})
@end table

@item gmsh/model/geo/addPlaneSurface
Add a plane surface in the built-in CAD representation, defined by one or more curve loops @code{wireTags}. The first curve loop defines the exterior contour; additional curve loop define holes. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface.

@table @asis
@item Input:
@code{wireTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2120,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1868,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5872,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5225,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8384,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L85,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L32,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L34,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L144,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L29,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L86,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L30,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L31,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L83,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L28,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L85,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L28,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L29,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L81,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L26,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L88,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L42,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L93,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L94,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L33,t6.f90}, ...)
@end table

@item gmsh/model/geo/addSurfaceFilling
Add a surface in the built-in CAD representation, filling the curve loops in @code{wireTags} using transfinite interpolation. Currently only a single curve loop is supported; this curve loop should be composed by 3 or 4 curves only. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface.

@table @asis
@item Input:
@code{wireTags} (vector of integers), @code{tag = -1} (integer), @code{sphereCenterTag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2130,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1877,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5900,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5251,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8416,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L57,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t12.cpp#L71,t12.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L149,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t12.py#L67,t12.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L146,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t12.jl#L66,t12.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L225,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t12.f90#L73,t12.f90})
@end table

@item gmsh/model/geo/addSurfaceLoop
Add a surface loop (a closed shell) formed by @code{surfaceTags} in the built-in CAD representation.  If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the shell.

@table @asis
@item Input:
@code{surfaceTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2140,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1885,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5930,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5274,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8451,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L113,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L66,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L77,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L143,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L108,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L103,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L65,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L139,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L49,aneurysm.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L106,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L101,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L61,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L143,x2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L122,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L113,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L115,t13.f90})
@end table

@item gmsh/model/geo/addVolume
Add a volume (a region) in the built-in CAD representation, defined by one or more shells @code{shellTags}. The first surface loop defines the exterior boundary; additional surface loop define holes. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the volume.

@table @asis
@item Input:
@code{shellTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2150,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1894,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5956,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5299,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8483,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L114,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L67,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L78,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x2.cpp#L144,x2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L109,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L159,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L66,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x2.py#L140,x2.py}, @url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L49,aneurysm.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L107,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L156,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L62,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x2.jl#L144,x2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L123,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L130,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L116,t13.f90})
@end table

@item gmsh/model/geo/addGeometry
Add a @code{geometry} in the built-in CAD representation. @code{geometry} can currently be one of "Sphere" or "PolarSphere" (where @code{numbers} should contain the x, y, z coordinates of the center, followed by the radius), or "ParametricSurface" (where @code{strings} should contains three expression evaluating to the x, y and z coordinates in terms of parametric coordinates u and v). If @code{tag} is positive, set the tag of the geometry explicitly; otherwise a new tag is selected automatically. Return the tag of the geometry.

@table @asis
@item Input:
@code{geometry} (string), @code{numbers = []} (vector of doubles), @code{strings = []} (vector of strings), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2163,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1906,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5984,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5328,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8518,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/ocean.py#L9,ocean.py}, @url{@value{GITLAB-PREFIX}/examples/api/parametric_surface.py#L9,parametric_surface.py})
@end table

@item gmsh/model/geo/addPointOnGeometry
Add a point in the built-in CAD representation, at coordinates (@code{x}, @code{y}, @code{z}) on the geometry @code{geometryTag}. If @code{meshSize} is > 0, add a meshing constraint at that point. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the point. For surface geometries, only the @code{x} and @code{y} coordinates are used.

@table @asis
@item Input:
@code{geometryTag} (integer), @code{x} (double), @code{y} (double), @code{z = 0.} (double), @code{meshSize = 0.} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2175,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1917,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6020,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5357,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8568,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/ocean.py#L11,ocean.py}, @url{@value{GITLAB-PREFIX}/examples/api/parametric_surface.py#L11,parametric_surface.py})
@end table

@item gmsh/model/geo/extrude
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, using a translation along (@code{dx}, @code{dy}, @code{dz}). Return extruded entities in @code{outDimTags}. If the @code{numElements} vector is not empty, also extrude the mesh: the entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers, normalized to 1. If @code{recombine} is set, recombine the mesh in the layers.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{numElements = []} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2191,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1932,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6055,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5390,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8619,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L124,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L48,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t14.cpp#L65,t14.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t15.cpp#L63,t15.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L118,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L44,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t14.py#L59,t14.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t15.py#L59,t15.py}, @url{@value{GITLAB-PREFIX}/examples/api/hex.py#L8,hex.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L116,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L44,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t14.jl#L58,t14.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t15.jl#L58,t15.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L132,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L106,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t14.f90#L71,t14.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t15.f90#L68,t15.f90})
@end table

@item gmsh/model/geo/revolve
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, using a rotation of @code{angle} radians around the axis of revolution defined by the point (@code{x}, @code{y}, @code{z}) and the direction (@code{ax}, @code{ay}, @code{az}). The angle should be strictly smaller than Pi. Return extruded entities in @code{outDimTags}. If the @code{numElements} vector is not empty, also extrude the mesh: the entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers, normalized to 1. If @code{recombine} is set, recombine the mesh in the layers.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{ax} (double), @code{ay} (double), @code{az} (double), @code{angle} (double), @code{numElements = []} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2211,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1951,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6099,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5434,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8696,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L55,t3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L51,t3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L51,t3.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L118,t3.f90})
@end table

@item gmsh/model/geo/twist
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, using a combined translation and rotation of @code{angle} radians, along (@code{dx}, @code{dy}, @code{dz}) and around the axis of revolution defined by the point (@code{x}, @code{y}, @code{z}) and the direction (@code{ax}, @code{ay}, @code{az}). The angle should be strictly smaller than Pi. Return extruded entities in @code{outDimTags}. If the @code{numElements} vector is not empty, also extrude the mesh: the entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers, normalized to 1. If @code{recombine} is set, recombine the mesh in the layers.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{ax} (double), @code{ay} (double), @code{az} (double), @code{angle} (double), @code{numElements = []} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2236,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1975,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6153,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5482,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8794,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L70,t3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L65,t3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L64,t3.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L136,t3.f90})
@end table

@item gmsh/model/geo/extrudeBoundaryLayer
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation along the normals of the mesh, creating discrete boundary layer entities. Return extruded entities in @code{outDimTags}. The entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers. If @code{recombine} is set, recombine the mesh in the layers. A second boundary layer can be created from the same entities if @code{second} is set. If @code{viewIndex} is >= 0, use the corresponding view to either specify the normals (if the view contains a vector field) or scale the normals (if the view is scalar).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{numElements = [1]} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean), @code{second = False} (boolean), @code{viewIndex = -1} (integer)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2264,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2002,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6214,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5522,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8907,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/aneurysm.py#L25,aneurysm.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L86,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L106,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L26,tube_boundary_layer.py})
@end table

@item gmsh/model/geo/translate
Translate the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation along (@code{dx}, @code{dy}, @code{dz}).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{dx} (double), @code{dy} (double), @code{dz} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2276,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2013,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6260,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5550,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L8972,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L48,t2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L45,t2.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L43,t2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L58,t2.f90})
@end table

@item gmsh/model/geo/rotate
Rotate the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation by @code{angle} radians around the axis of revolution defined by the point (@code{x}, @code{y}, @code{z}) and the direction (@code{ax}, @code{ay}, @code{az}).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{ax} (double), @code{ay} (double), @code{az} (double), @code{angle} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2287,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2023,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6285,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5578,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9011,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L52,t2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L49,t2.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L47,t2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L62,t2.f90})
@end table

@item gmsh/model/geo/dilate
Scale the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation by factors @code{a}, @code{b} and @code{c} along the three coordinate axes; use (@code{x}, @code{y}, @code{z}) as the center of the homothetic transformation.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{a} (double), @code{b} (double), @code{c} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2302,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2037,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6320,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5606,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9070,Fortran}
@end table

@item gmsh/model/geo/mirror
Mirror the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, with respect to the plane of equation @code{a} * x + @code{b} * y + @code{c} * z + @code{d} = 0.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{a} (double), @code{b} (double), @code{c} (double), @code{d} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2315,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2049,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6353,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5631,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9123,Fortran}
@end table

@item gmsh/model/geo/symmetrize
Mirror the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, with respect to the plane of equation @code{a} * x + @code{b} * y + @code{c} * z + @code{d} = 0. (This is a deprecated synonym for @code{mirror}.)

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{a} (double), @code{b} (double), @code{c} (double), @code{d} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2327,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2060,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6381,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5656,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9167,Fortran}
@end table

@item gmsh/model/geo/copy
Copy the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation; the new entities are returned in @code{outDimTags}.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2338,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2069,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6410,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5679,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9209,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L61,t2.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L57,t2.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L55,t2.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L70,t2.f90})
@end table

@item gmsh/model/geo/remove
Remove the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD representation, provided that they are not on the boundary of higher-dimensional entities. If @code{recursive} is true, remove all the entities on their boundaries, down to dimension 0.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{recursive = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2347,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2077,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6435,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5706,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9245,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L32,t6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L31,t6.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L29,t6.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L36,t6.f90})
@end table

@item gmsh/model/geo/removeAllDuplicates
Remove all duplicate entities in the built-in CAD representation (different entities at the same geometrical location).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2354,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2083,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6458,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5723,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9272,Fortran}
@end table

@item gmsh/model/geo/splitCurve
Split the curve of tag @code{tag} in the built-in CAD representation, on the specified control points @code{pointTags}. This feature is only available for splines and b-splines. Return the tag(s) @code{curveTags} of the newly created curve(s).

@table @asis
@item Input:
@code{tag} (integer), @code{pointTags} (vector of integers)
@item Output:
@code{curveTags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2362,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2089,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6473,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5747,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9288,Fortran}
@end table

@item gmsh/model/geo/getMaxTag
Get the maximum tag of entities of dimension @code{dim} in the built-in CAD representation.

@table @asis
@item Input:
@code{dim} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2370,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2096,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6503,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5771,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9327,Fortran}
@end table

@item gmsh/model/geo/setMaxTag
Set the maximum tag @code{maxTag} for entities of dimension @code{dim} in the built-in CAD representation.

@table @asis
@item Input:
@code{dim} (integer), @code{maxTag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2376,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2101,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6525,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5791,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9348,Fortran}
@end table

@item gmsh/model/geo/addPhysicalGroup
Add a physical group of dimension @code{dim}, grouping the entities with tags @code{tags} in the built-in CAD representation. Return the tag of the physical group, equal to @code{tag} if @code{tag} is positive, or a new tag if @code{tag} < 0. Set the name of the physical group if @code{name} is not empty.

@table @asis
@item Input:
@code{dim} (integer), @code{tags} (vector of integers), @code{tag = -1} (integer), @code{name = ""} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2385,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2109,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6546,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5817,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9374,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L174,t5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L173,t5.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L169,t5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L124,t5.f90})
@end table

@item gmsh/model/geo/removePhysicalGroups
Remove the physical groups @code{dimTags} (given as a vector of (dim, tag) pairs) from the built-in CAD representation. If @code{dimTags} is empty, remove all groups.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2395,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2118,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6577,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5836,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9414,Fortran}
@end table

@item gmsh/model/geo/synchronize
Synchronize the built-in CAD representation with the current Gmsh model. This can be called at any time, but since it involves a non trivial amount of processing, the number of synchronization points should normally be minimized. Without synchronization the entities in the built-in CAD representation are not available to any function outside of the built-in CAD kernel functions.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2405,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2127,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6598,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5857,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9440,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L96,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L33,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L35,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L184,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L98,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L96,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L31,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L32,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L180,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L93,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L95,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L29,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L30,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L177,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L92,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L98,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L43,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L94,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L132,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L99,t6.f90}, ...)
@end table

@end ftable

@node Namespace gmsh/model/geo/mesh, Namespace gmsh/model/occ, Namespace gmsh/model/geo, Gmsh application programming interface
@section Namespace @code{gmsh/model/geo/mesh}: built-in CAD kernel meshing constraints

@ftable @code
@item gmsh/model/geo/mesh/setSize
Set a mesh size constraint on the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the built-in CAD kernel representation. Currently only entities of dimension 0 (points) are handled.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{size} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2414,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2132,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6622,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5886,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9455,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L128,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t15.cpp#L41,t15.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L122,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t15.py#L37,t15.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L120,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t15.jl#L36,t15.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L137,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t15.f90#L46,t15.f90})
@end table

@item gmsh/model/geo/mesh/setTransfiniteCurve
Set a transfinite meshing constraint on the curve @code{tag} in the built-in CAD kernel representation, with @code{numNodes} nodes distributed according to @code{meshType} and @code{coef}. Currently supported types are "Progression" (geometrical progression with power @code{coef}) and "Bump" (refinement toward both extremities of the curve).

@table @asis
@item Input:
@code{tag} (integer), @code{nPoints} (integer), @code{meshType = "Progression"} (string), @code{coef = 1.} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2424,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2141,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6645,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5912,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9485,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L48,t6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L47,t6.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L45,t6.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L52,t6.f90})
@end table

@item gmsh/model/geo/mesh/setTransfiniteSurface
Set a transfinite meshing constraint on the surface @code{tag} in the built-in CAD kernel representation. @code{arrangement} describes the arrangement of the triangles when the surface is not flagged as recombined: currently supported values are "Left", "Right", "AlternateLeft" and "AlternateRight". @code{cornerTags} can be used to specify the (3 or 4) corners of the transfinite interpolation explicitly; specifying the corners explicitly is mandatory if the surface has more that 3 or 4 points on its boundary.

@table @asis
@item Input:
@code{tag} (integer), @code{arrangement = "Left"} (string), @code{cornerTags = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2439,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2154,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6673,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5938,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9524,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L67,t6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L66,t6.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L64,t6.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L71,t6.f90})
@end table

@item gmsh/model/geo/mesh/setTransfiniteVolume
Set a transfinite meshing constraint on the surface @code{tag} in the built-in CAD kernel representation. @code{cornerTags} can be used to specify the (6 or 8) corners of the transfinite interpolation explicitly.

@table @asis
@item Input:
@code{tag} (integer), @code{cornerTags = []} (vector of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2448,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2162,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6702,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5959,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9557,Fortran}
@end table

@item gmsh/model/geo/mesh/setRecombine
Set a recombination meshing constraint on the entity of dimension @code{dim} and tag @code{tag} in the built-in CAD kernel representation. Currently only entities of dimension 2 (to recombine triangles into quadrangles) are supported; @code{angle} specifies the threshold angle for the simple recombination algorithm.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{angle = 45.} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2458,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2171,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6725,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5982,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9587,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L71,t6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L70,t6.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L68,t6.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L75,t6.f90})
@end table

@item gmsh/model/geo/mesh/setSmoothing
Set a smoothing meshing constraint on the entity of dimension @code{dim} and tag @code{tag} in the built-in CAD kernel representation. @code{val} iterations of a Laplace smoother are applied.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2467,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2179,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6751,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6004,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9617,Fortran}
@end table

@item gmsh/model/geo/mesh/setReverse
Set a reverse meshing constraint on the entity of dimension @code{dim} and tag @code{tag} in the built-in CAD kernel representation. If @code{val} is true, the mesh orientation will be reversed with respect to the natural mesh orientation (i.e. the orientation consistent with the orientation of the geometry). If @code{val} is false, the mesh is left as-is.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2478,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2189,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6775,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6028,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9649,Fortran}
@end table

@item gmsh/model/geo/mesh/setAlgorithm
Set the meshing algorithm on the entity of dimension @code{dim} and tag @code{tag} in the built-in CAD kernel representation. Currently only supported for @code{dim} == 2.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2487,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2197,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6801,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6049,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9679,Fortran}
@end table

@item gmsh/model/geo/mesh/setSizeFromBoundary
Force the mesh size to be extended from the boundary, or not, for the entity of dimension @code{dim} and tag @code{tag} in the built-in CAD kernel representation. Currently only supported for @code{dim} == 2.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer), @code{val} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2496,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2205,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6825,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6071,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9709,Fortran}
@end table

@end ftable

@node Namespace gmsh/model/occ, Namespace gmsh/model/occ/mesh, Namespace gmsh/model/geo/mesh, Gmsh application programming interface
@section Namespace @code{gmsh/model/occ}: OpenCASCADE CAD kernel functions

@ftable @code
@item gmsh/model/occ/addPoint
Add a geometrical point in the OpenCASCADE CAD representation, at coordinates (@code{x}, @code{y}, @code{z}). If @code{meshSize} is > 0, add a meshing constraint at that point. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the point. (Note that the point will be added in the current model only after @code{synchronize} is called. This behavior holds for all the entities added in the occ module.)

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{meshSize = 0.} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2515,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2216,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6855,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6113,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9742,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L67,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L59,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L6,bspline_bezier_patches.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_trimmed.py#L6,bspline_bezier_trimmed.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_filling.py#L14,bspline_filling.py}, @url{@value{GITLAB-PREFIX}/examples/api/circle_arc.py#L4,circle_arc.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L56,t19.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L15,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L71,t19.f90})
@end table

@item gmsh/model/occ/addLine
Add a straight line segment in the OpenCASCADE CAD representation, between the two points with tags @code{startTag} and @code{endTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the line.

@table @asis
@item Input:
@code{startTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2527,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2227,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6889,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6138,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9785,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/crack.py#L13,crack.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L67,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L70,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/relocate_nodes.py#L10,relocate_nodes.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L44,stl_to_brep.py})
@end table

@item gmsh/model/occ/addCircleArc
Add a circle arc in the OpenCASCADE CAD representation, between the two points with tags @code{startTag} and @code{endTag}, with middle point @code{middleTag}. If @code{center} is true, the middle point is the center of the circle; otherwise the circle goes through the middle point. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the circle arc.

@table @asis
@item Input:
@code{startTag} (integer), @code{middleTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer), @code{center = True} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2539,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2238,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6917,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6166,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9820,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/circle_arc.py#L8,circle_arc.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L64,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L60,naca_boundary_layer_3d.py})
@end table

@item gmsh/model/occ/addCircle
Add a circle of center (@code{x}, @code{y}, @code{z}) and radius @code{r} in the OpenCASCADE CAD representation. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{angle1} and @code{angle2} are specified, create a circle arc between the two angles. If a vector @code{zAxis} of size 3 is provided, use it as the normal to the circle plane (z-axis). If a vector @code{xAxis} of size 3 is provided in addition to @code{zAxis}, use it to define the x-axis. Return the tag of the circle.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{r} (double), @code{tag = -1} (integer), @code{angle1 = 0.} (double), @code{angle2 = 2*pi} (double), @code{zAxis = []} (vector of doubles), @code{xAxis = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2554,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2252,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6951,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6200,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9866,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L25,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L23,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_trimmed.py#L30,bspline_bezier_trimmed.py}, @url{@value{GITLAB-PREFIX}/examples/api/closest_point.py#L7,closest_point.py}, @url{@value{GITLAB-PREFIX}/examples/api/prim_axis.py#L6,prim_axis.py}, @url{@value{GITLAB-PREFIX}/examples/api/trimmed.py#L9,trimmed.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L20,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L32,t19.f90})
@end table

@item gmsh/model/occ/addEllipseArc
Add an ellipse arc in the OpenCASCADE CAD representation, between the two points @code{startTag} and @code{endTag}, and with center @code{centerTag} and major axis point @code{majorTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the ellipse arc. Note that OpenCASCADE does not allow creating ellipse arcs with the major radius smaller than the minor radius.

@table @asis
@item Input:
@code{startTag} (integer), @code{centerTag} (integer), @code{majorTag} (integer), @code{endTag} (integer), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2572,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2269,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6996,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6229,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9937,Fortran}
@end table

@item gmsh/model/occ/addEllipse
Add an ellipse of center (@code{x}, @code{y}, @code{z}) and radii @code{r1} and @code{r2} (with @code{r1} >= @code{r2}) along the x- and y-axes, respectively, in the OpenCASCADE CAD representation. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{angle1} and @code{angle2} are specified, create an ellipse arc between the two angles. If a vector @code{zAxis} of size 3 is provided, use it as the normal to the ellipse plane (z-axis). If a vector @code{xAxis} of size 3 is provided in addition to @code{zAxis}, use it to define the x-axis. Return the tag of the ellipse.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{r1} (double), @code{r2} (double), @code{tag = -1} (integer), @code{angle1 = 0.} (double), @code{angle2 = 2*pi} (double), @code{zAxis = []} (vector of doubles), @code{xAxis = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2588,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2284,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7030,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6265,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L9984,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prim_axis.py#L11,prim_axis.py})
@end table

@item gmsh/model/occ/addSpline
Add a spline (C2 b-spline) curve in the OpenCASCADE CAD representation, going through the points @code{pointTags}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Create a periodic curve if the first and last points are the same. Return the tag of the spline curve. If the @code{tangents} vector contains 6 entries, use them as concatenated x, y, z components of the initial and final tangents of the b-spline; if it contains 3 times as many entries as the number of points, use them as concatenated x, y, z components of the tangents at each point, unless the norm of the tangent is zero.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer), @code{tangents = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2610,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2305,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7078,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6295,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10063,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L71,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L62,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L59,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L56,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L20,pipe.py}, @url{@value{GITLAB-PREFIX}/examples/api/spline.py#L12,spline.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L60,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L73,t19.f90})
@end table

@item gmsh/model/occ/addBSpline
Add a b-spline curve of degree @code{degree} in the OpenCASCADE CAD representation, with @code{pointTags} control points. If @code{weights}, @code{knots} or @code{multiplicities} are not provided, default parameters are computed automatically. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Create a periodic curve if the first and last points are the same. Return the tag of the b-spline curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer), @code{degree = 3} (integer), @code{weights = []} (vector of doubles), @code{knots = []} (vector of doubles), @code{multiplicities = []} (vector of integers)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2622,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2316,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7113,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6325,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10104,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_filling.py#L18,bspline_filling.py}, @url{@value{GITLAB-PREFIX}/examples/api/spline.py#L13,spline.py}, @url{@value{GITLAB-PREFIX}/examples/api/torus_bspline.py#L292,torus_bspline.py})
@end table

@item gmsh/model/occ/addBezier
Add a Bezier curve in the OpenCASCADE CAD representation, with @code{pointTags} control points. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the Bezier curve.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2634,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2327,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7153,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6348,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10163,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/spline.py#L14,spline.py})
@end table

@item gmsh/model/occ/addWire
Add a wire (open or closed) in the OpenCASCADE CAD representation, formed by the curves @code{curveTags}. Note that an OpenCASCADE wire can be made of curves that share geometrically identical (but topologically different) points. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the wire.

@table @asis
@item Input:
@code{curveTags} (vector of integers), @code{tag = -1} (integer), @code{checkClosed = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2644,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2336,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7179,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6374,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10195,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L74,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L65,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_trimmed.py#L31,bspline_bezier_trimmed.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_filling.py#L36,bspline_filling.py}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L21,pipe.py}, @url{@value{GITLAB-PREFIX}/examples/api/trimmed.py#L10,trimmed.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L63,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L76,t19.f90})
@end table

@item gmsh/model/occ/addCurveLoop
Add a curve loop (a closed wire) in the OpenCASCADE CAD representation, formed by the curves @code{curveTags}. @code{curveTags} should contain tags of curves forming a closed loop. Negative tags can be specified for compatibility with the built-in kernel, but are simply ignored: the wire is oriented according to the orientation of its first curve. Note that an OpenCASCADE curve loop can be made of curves that share geometrically identical (but topologically different) points. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the curve loop.

@table @asis
@item Input:
@code{curveTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2659,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2350,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7209,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6402,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10236,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L26,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L24,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L73,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/relocate_nodes.py#L15,relocate_nodes.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L49,stl_to_brep.py}, @url{@value{GITLAB-PREFIX}/examples/api/surface_filling.py#L16,surface_filling.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L21,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L33,t19.f90})
@end table

@item gmsh/model/occ/addRectangle
Add a rectangle in the OpenCASCADE CAD representation, with lower left corner at (@code{x}, @code{y}, @code{z}) and upper right corner at (@code{x} + @code{dx}, @code{y} + @code{dy}, @code{z}). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Round the corners if @code{roundedRadius} is nonzero. Return the tag of the rectangle.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{tag = -1} (integer), @code{roundedRadius = 0.} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2669,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2359,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7241,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6432,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10268,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L28,t17.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L62,t20.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L39,t21.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x6.cpp#L20,x6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L27,t17.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L52,t20.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L31,t21.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L19,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L75,adapt_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L24,t17.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L49,t20.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L30,t21.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x6.jl#L18,x6.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L32,t17.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L60,t20.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L42,t21.f90})
@end table

@item gmsh/model/occ/addDisk
Add a disk in the OpenCASCADE CAD representation, with center (@code{xc}, @code{yc}, @code{zc}) and radius @code{rx} along the x-axis and @code{ry} along the y-axis (@code{rx} >= @code{ry}). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If a vector @code{zAxis} of size 3 is provided, use it as the normal to the disk (z-axis). If a vector @code{xAxis} of size 3 is provided in addition to @code{zAxis}, use it to define the x-axis. Return the tag of the disk.

@table @asis
@item Input:
@code{xc} (double), @code{yc} (double), @code{zc} (double), @code{rx} (double), @code{ry} (double), @code{tag = -1} (integer), @code{zAxis = []} (vector of doubles), @code{xAxis = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2686,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2375,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7278,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6464,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10324,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L77,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L68,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L23,pipe.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L37,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/prim_axis.py#L15,prim_axis.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L66,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L79,t19.f90})
@end table

@item gmsh/model/occ/addPlaneSurface
Add a plane surface in the OpenCASCADE CAD representation, defined by one or more curve loops (or closed wires) @code{wireTags}. The first curve loop defines the exterior contour; additional curve loop define holes. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface.

@table @asis
@item Input:
@code{wireTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2702,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2390,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7321,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6489,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10389,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L118,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L50,stl_to_brep.py}, @url{@value{GITLAB-PREFIX}/examples/api/torus_bspline.py#L276,torus_bspline.py})
@end table

@item gmsh/model/occ/addSurfaceFilling
Add a surface in the OpenCASCADE CAD representation, filling the curve loop @code{wireTag}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface. If @code{pointTags} are provided, force the surface to pass through the given points. The other optional arguments are @code{degree} (the degree of the energy criterion to minimize for computing the deformation of the surface), @code{numPointsOnCurves} (the average number of points for discretisation of the bounding curves), @code{numIter} (the maximum number of iterations of the optimization process), @code{anisotropic} (improve performance when the ratio of the length along the two parametric coordinates of the surface is high), @code{tol2d} (tolerance to the constraints in the parametric plane of the surface), @code{tol3d} (the maximum distance allowed between the support surface and the constraints), @code{tolAng} (the maximum angle allowed between the normal of the surface and the constraints), @code{tolCurv} (the maximum difference of curvature allowed between the surface and the constraint), @code{maxDegree} (the highest degree which the polynomial defining the filling surface can have) and, @code{maxSegments} (the largest number of segments which the filling surface can have).

@table @asis
@item Input:
@code{wireTag} (integer), @code{tag = -1} (integer), @code{pointTags = []} (vector of integers), @code{degree = 2} (integer), @code{numPointsOnCurves = 15} (integer), @code{numIter = 2} (integer), @code{anisotropic = False} (boolean), @code{tol2d = 0.00001} (double), @code{tol3d = 0.0001} (double), @code{tolAng = 0.01} (double), @code{tolCurv = 0.1} (double), @code{maxDegree = 8} (integer), @code{maxSegments = 9} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2726,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2412,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7349,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6537,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10434,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/relocate_nodes.py#L21,relocate_nodes.py}, @url{@value{GITLAB-PREFIX}/examples/api/surface_filling.py#L19,surface_filling.py})
@end table

@item gmsh/model/occ/addBSplineFilling
Add a BSpline surface in the OpenCASCADE CAD representation, filling the curve loop @code{wireTag}. The curve loop should be made of 2, 3 or 4 curves. The optional @code{type} argument specifies the type of filling: "Stretch" creates the flattest patch, "Curved" (the default) creates the most rounded patch, and "Coons" creates a rounded patch with less depth than "Curved". If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface.

@table @asis
@item Input:
@code{wireTag} (integer), @code{tag = -1} (integer), @code{type = ""} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2749,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2434,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7412,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6565,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10523,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_filling.py#L39,bspline_filling.py}, @url{@value{GITLAB-PREFIX}/examples/api/surface_filling.py#L22,surface_filling.py})
@end table

@item gmsh/model/occ/addBezierFilling
Add a Bezier surface in the OpenCASCADE CAD representation, filling the curve loop @code{wireTag}. The curve loop should be made of 2, 3 or 4 Bezier curves. The optional @code{type} argument specifies the type of filling: "Stretch" creates the flattest patch, "Curved" (the default) creates the most rounded patch, and "Coons" creates a rounded patch with less depth than "Curved". If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface.

@table @asis
@item Input:
@code{wireTag} (integer), @code{tag = -1} (integer), @code{type = ""} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2762,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2446,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7443,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6593,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10559,Fortran}
@end table

@item gmsh/model/occ/addBSplineSurface
Add a b-spline surface of degree @code{degreeU} x @code{degreeV} in the OpenCASCADE CAD representation, with @code{pointTags} control points given as a single vector [Pu1v1, ... Pu@code{numPointsU}v1, Pu1v2, ...]. If @code{weights}, @code{knotsU}, @code{knotsV}, @code{multiplicitiesU} or @code{multiplicitiesV} are not provided, default parameters are computed automatically. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{wireTags} is provided, trim the b-spline patch using the provided wires: the first wire defines the external contour, the others define holes. If @code{wire3D} is set, consider wire curves as 3D curves and project them on the b-spline surface; otherwise consider the wire curves as defined in the parametric space of the surface. Return the tag of the b-spline surface.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{numPointsU} (integer), @code{tag = -1} (integer), @code{degreeU = 3} (integer), @code{degreeV = 3} (integer), @code{weights = []} (vector of doubles), @code{knotsU = []} (vector of doubles), @code{knotsV = []} (vector of doubles), @code{multiplicitiesU = []} (vector of integers), @code{multiplicitiesV = []} (vector of integers), @code{wireTags = []} (vector of integers), @code{wire3D = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2779,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2462,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7474,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6634,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10599,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L55,bspline_bezier_patches.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_trimmed.py#L41,bspline_bezier_trimmed.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L20,terrain_bspline.py}, @url{@value{GITLAB-PREFIX}/examples/api/torus_bspline.py#L353,torus_bspline.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L19,terrain_bspline.jl})
@end table

@item gmsh/model/occ/addBezierSurface
Add a Bezier surface in the OpenCASCADE CAD representation, with @code{pointTags} control points given as a single vector [Pu1v1, ... Pu@code{numPointsU}v1, Pu1v2, ...]. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{wireTags} is provided, trim the Bezier patch using the provided wires: the first wire defines the external contour, the others define holes. If @code{wire3D} is set, consider wire curves as 3D curves and project them on the Bezier surface; otherwise consider the wire curves as defined in the parametric space of the surface. Return the tag of the Bezier surface.

@table @asis
@item Input:
@code{pointTags} (vector of integers), @code{numPointsU} (integer), @code{tag = -1} (integer), @code{wireTags = []} (vector of integers), @code{wire3D = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2803,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2485,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7534,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6665,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10703,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L52,bspline_bezier_patches.py})
@end table

@item gmsh/model/occ/addTrimmedSurface
Trim the surface @code{surfaceTag} with the wires @code{wireTags}, replacing any existing trimming curves. The first wire defines the external contour, the others define holes. If @code{wire3D} is set, consider wire curves as 3D curves and project them on the surface; otherwise consider the wire curves as defined in the parametric space of the surface. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the trimmed surface.

@table @asis
@item Input:
@code{surfaceTag} (integer), @code{wireTags = []} (vector of integers), @code{wire3D = False} (boolean), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2818,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2499,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7573,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6693,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10755,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/trimmed.py#L24,trimmed.py})
@end table

@item gmsh/model/occ/addSurfaceLoop
Add a surface loop (a closed shell) in the OpenCASCADE CAD representation, formed by @code{surfaceTags}.  If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the surface loop. Setting @code{sewing} allows one to build a shell made of surfaces that share geometrically identical (but topologically different) curves.

@table @asis
@item Input:
@code{surfaceTags} (vector of integers), @code{tag = -1} (integer), @code{sewing = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2831,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2510,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7607,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6719,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10797,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L59,stl_to_brep.py})
@end table

@item gmsh/model/occ/addVolume
Add a volume (a region) in the OpenCASCADE CAD representation, defined by one or more surface loops @code{shellTags}. The first surface loop defines the exterior boundary; additional surface loop define holes. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the volume.

@table @asis
@item Input:
@code{shellTags} (vector of integers), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2842,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2520,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7637,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6744,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10834,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/stl_to_brep.py#L60,stl_to_brep.py})
@end table

@item gmsh/model/occ/addSphere
Add a sphere of center (@code{xc}, @code{yc}, @code{zc}) and radius @code{r} in the OpenCASCADE CAD representation. The optional @code{angle1} and @code{angle2} arguments define the polar angle opening (from -Pi/2 to Pi/2). The optional @code{angle3} argument defines the azimuthal opening (from 0 to 2*Pi). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the sphere.

@table @asis
@item Input:
@code{xc} (double), @code{yc} (double), @code{zc} (double), @code{radius} (double), @code{tag = -1} (integer), @code{angle1 = -pi/2} (double), @code{angle2 = pi/2} (double), @code{angle3 = 2*pi} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2853,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2530,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7665,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6776,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10867,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L53,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L61,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L23,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L47,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L59,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L20,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/boolean.py#L21,boolean.py}, @url{@value{GITLAB-PREFIX}/examples/api/extend_field.py#L6,extend_field.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L43,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L56,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L18,x5.jl}, @url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L22,gui.jl}, @url{@value{GITLAB-PREFIX}/examples/api/julia_exception.jl#L3,julia_exception.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L69,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L71,t18.f90})
@end table

@item gmsh/model/occ/addBox
Add a parallelepipedic box in the OpenCASCADE CAD representation, defined by a point (@code{x}, @code{y}, @code{z}) and the extents along the x-, y- and z-axes. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the box.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2868,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2544,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7705,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6805,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10925,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L31,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L27,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L58,x4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L24,x5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L24,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L28,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L26,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L56,x4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L21,x5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x7.py#L21,x7.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L26,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L23,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L57,x4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L19,x5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x7.jl#L20,x7.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L40,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L36,t18.f90})
@end table

@item gmsh/model/occ/addCylinder
Add a cylinder in the OpenCASCADE CAD representation, defined by the center (@code{x}, @code{y}, @code{z}) of its first circular face, the 3 components (@code{dx}, @code{dy}, @code{dz}) of the vector defining its axis and its radius @code{r}. The optional @code{angle} argument defines the angular opening (from 0 to 2*Pi). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. Return the tag of the cylinder.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{r} (double), @code{tag = -1} (integer), @code{angle = 2*pi} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2884,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2559,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7741,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6838,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L10980,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/boolean.py#L23,boolean.py}, @url{@value{GITLAB-PREFIX}/examples/api/cylinderFFD.py#L32,cylinderFFD.py}, @url{@value{GITLAB-PREFIX}/examples/api/gui.py#L24,gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L14,tube_boundary_layer.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L24,gui.jl})
@end table

@item gmsh/model/occ/addCone
Add a cone in the OpenCASCADE CAD representation, defined by the center (@code{x}, @code{y}, @code{z}) of its first circular face, the 3 components of the vector (@code{dx}, @code{dy}, @code{dz}) defining its axis and the two radii @code{r1} and @code{r2} of the faces (these radii can be zero). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. @code{angle} defines the optional angular opening (from 0 to 2*Pi). Return the tag of the cone.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{r1} (double), @code{r2} (double), @code{tag = -1} (integer), @code{angle = 2*pi} (double)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2902,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2576,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7783,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6872,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11045,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x1.cpp#L31,x1.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x1.py#L27,x1.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x1.jl#L26,x1.jl})
@end table

@item gmsh/model/occ/addWedge
Add a right angular wedge in the OpenCASCADE CAD representation, defined by the right-angle point (@code{x}, @code{y}, @code{z}) and the 3 extends along the x-, y- and z-axes (@code{dx}, @code{dy}, @code{dz}). If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. The optional argument @code{ltx} defines the top extent along the x-axis. If a vector @code{zAxis} of size 3 is provided, use it to define the z-axis. Return the tag of the wedge.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{tag = -1} (integer), @code{ltx = 0.} (double), @code{zAxis = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2922,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2595,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7827,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6905,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11116,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prim_axis.py#L21,prim_axis.py})
@end table

@item gmsh/model/occ/addTorus
Add a torus in the OpenCASCADE CAD representation, defined by its center (@code{x}, @code{y}, @code{z}) and its 2 radii @code{r} and @code{r2}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. The optional argument @code{angle} defines the angular opening (from 0 to 2*Pi). If a vector @code{zAxis} of size 3 is provided, use it to define the z-axis. Return the tag of the torus.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{r1} (double), @code{r2} (double), @code{tag = -1} (integer), @code{angle = 2*pi} (double), @code{zAxis = []} (vector of doubles)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2940,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2612,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7871,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6936,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11184,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prim_axis.py#L18,prim_axis.py}, @url{@value{GITLAB-PREFIX}/examples/api/step_header_data.py#L10,step_header_data.py})
@end table

@item gmsh/model/occ/addThruSections
Add a volume (if the optional argument @code{makeSolid} is set) or surfaces in the OpenCASCADE CAD representation, defined through the open or closed wires @code{wireTags}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. The new entities are returned in @code{outDimTags} as a vector of (dim, tag) pairs. If the optional argument @code{makeRuled} is set, the surfaces created on the boundary are forced to be ruled surfaces. If @code{maxDegree} is positive, set the maximal degree of resulting surface. The optional argument @code{continuity} allows to specify the continuity of the resulting shape ("C0", "G1", "C1", "G2", "C2", "C3", "CN"). The optional argument @code{parametrization} sets the parametrization type ("ChordLength", "Centripetal", "IsoParametric"). The optional argument @code{smoothing} determines if smoothing is applied.

@table @asis
@item Input:
@code{wireTags} (vector of integers), @code{tag = -1} (integer), @code{makeSolid = True} (boolean), @code{makeRuled = False} (boolean), @code{maxDegree = -1} (integer), @code{continuity = ""} (string), @code{parametrization = ""} (string), @code{smoothing = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2963,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2634,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7912,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6974,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11253,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L32,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L29,t19.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L26,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L38,t19.f90})
@end table

@item gmsh/model/occ/addThickSolid
Add a hollowed volume in the OpenCASCADE CAD representation, built from an initial volume @code{volumeTag} and a set of faces from this volume @code{excludeSurfaceTags}, which are to be removed. The remaining faces of the volume become the walls of the hollowed solid, with thickness @code{offset}. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically.

@table @asis
@item Input:
@code{volumeTag} (integer), @code{excludeSurfaceTags} (vector of integers), @code{offset} (double), @code{tag = -1} (integer)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2981,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2651,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7962,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7006,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11326,Fortran}
@end table

@item gmsh/model/occ/extrude
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation, using a translation along (@code{dx}, @code{dy}, @code{dz}). Return extruded entities in @code{outDimTags}. If the @code{numElements} vector is not empty, also extrude the mesh: the entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers, normalized to 1. If @code{recombine} is set, recombine the mesh in the layers.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{dx} (double), @code{dy} (double), @code{dz} (double), @code{numElements = []} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L2996,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2665,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7998,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7043,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11380,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L63,naca_boundary_layer_3d.py})
@end table

@item gmsh/model/occ/revolve
Extrude the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation, using a rotation of @code{angle} radians around the axis of revolution defined by the point (@code{x}, @code{y}, @code{z}) and the direction (@code{ax}, @code{ay}, @code{az}). Return extruded entities in @code{outDimTags}. If the @code{numElements} vector is not empty, also extrude the mesh: the entries in @code{numElements} give the number of elements in each layer. If the @code{height} vector is not empty, it provides the (cumulative) height of the different layers, normalized to 1. When the mesh is extruded the angle should be strictly smaller than 2*Pi. If @code{recombine} is set, recombine the mesh in the layers.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{ax} (double), @code{ay} (double), @code{az} (double), @code{angle} (double), @code{numElements = []} (vector of integers), @code{heights = []} (vector of doubles), @code{recombine = False} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3017,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2685,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8042,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7087,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11458,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L84,naca_boundary_layer_3d.py})
@end table

@item gmsh/model/occ/addPipe
Add a pipe in the OpenCASCADE CAD representation, by extruding the entities @code{dimTags} (given as a vector of (dim, tag) pairs) along the wire @code{wireTag}. The type of sweep can be specified with @code{trihedron} (possible values: "DiscreteTrihedron", "CorrectedFrenet", "Fixed", "Frenet", "ConstantNormal", "Darboux", "GuideAC", "GuidePlan", "GuideACWithContact", "GuidePlanWithContact"). If @code{trihedron} is not provided, "DiscreteTrihedron" is assumed. Return the pipe in @code{outDimTags}.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{wireTag} (integer), @code{trihedron = ""} (string)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3039,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2706,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8097,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7121,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11553,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L82,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L73,t19.py}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L29,pipe.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L71,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L84,t19.f90})
@end table

@item gmsh/model/occ/fillet
Fillet the volumes @code{volumeTags} on the curves @code{curveTags} with radii @code{radii}. The @code{radii} vector can either contain a single radius, as many radii as @code{curveTags}, or twice as many as @code{curveTags} (in which case different radii are provided for the begin and end points of the curves). Return the filleted entities in @code{outDimTags} as a vector of (dim, tag) pairs. Remove the original volume if @code{removeVolume} is set.

@table @asis
@item Input:
@code{volumeTags} (vector of integers), @code{curveTags} (vector of integers), @code{radii} (vector of doubles), @code{removeVolume = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3052,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2718,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8132,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7156,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11601,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L55,t19.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L47,t19.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L44,t19.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L59,t19.f90})
@end table

@item gmsh/model/occ/chamfer
Chamfer the volumes @code{volumeTags} on the curves @code{curveTags} with distances @code{distances} measured on surfaces @code{surfaceTags}. The @code{distances} vector can either contain a single distance, as many distances as @code{curveTags} and @code{surfaceTags}, or twice as many as @code{curveTags} and @code{surfaceTags} (in which case the first in each pair is measured on the corresponding surface in @code{surfaceTags}, the other on the other adjacent surface). Return the chamfered entities in @code{outDimTags}. Remove the original volume if @code{removeVolume} is set.

@table @asis
@item Input:
@code{volumeTags} (vector of integers), @code{curveTags} (vector of integers), @code{surfaceTags} (vector of integers), @code{distances} (vector of doubles), @code{removeVolume = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3068,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2733,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8169,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7190,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11662,Fortran}
@end table

@item gmsh/model/occ/defeature
Defeature the volumes @code{volumeTags} by removing the surfaces @code{surfaceTags}. Return the defeatured entities in @code{outDimTags}. Remove the original volume if @code{removeVolume} is set.

@table @asis
@item Input:
@code{volumeTags} (vector of integers), @code{surfaceTags} (vector of integers), @code{removeVolume = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3080,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2744,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8211,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7218,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11726,Fortran}
@end table

@item gmsh/model/occ/fillet2D
Create a fillet edge between edges @code{edgeTag1} and @code{edgeTag2} with radius @code{radius}. The modifed edges keep their tag. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically. If @code{pointTag} is positive, set the point on the edge at which the fillet is created. If @code{reverse} is set, the normal of the plane through the two planes is reversed before the fillet is created.

@table @asis
@item Input:
@code{edgeTag1} (integer), @code{edgeTag2} (integer), @code{radius} (double), @code{tag = -1} (integer), @code{pointTag = -1} (integer), @code{reverse = False} (boolean)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3093,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2756,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8242,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7251,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11777,Fortran}
@end table

@item gmsh/model/occ/chamfer2D
Create a chamfer edge between edges @code{edgeTag1} and @code{edgeTag2} with distance1 @code{distance1} and distance2 @code{distance2}. The modifed edges keep their tag. If @code{tag} is positive, set the tag explicitly; otherwise a new tag is selected automatically.

@table @asis
@item Input:
@code{edgeTag1} (integer), @code{edgeTag2} (integer), @code{distance1} (double), @code{distance2} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3106,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2768,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8278,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7278,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11825,Fortran}
@end table

@item gmsh/model/occ/offsetCurve
Create an offset curve based on the curve loop @code{curveLoopTag} with offset @code{offset}. Return the offset curves in @code{outDimTags} as a vector of (dim, tag) pairs.

@table @asis
@item Input:
@code{curveLoopTag} (integer), @code{offset} (double)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3117,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2778,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8310,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7302,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11867,Fortran}
@end table

@item gmsh/model/occ/getDistance
Find the minimal distance between shape with @code{dim1} and @code{tag1} and shape with @code{dim2} and @code{tag2} and the according coordinates. Return the distance in @code{distance} and the coordinates of the points as @code{x1}, @code{y1}, @code{z1} and @code{x2}, @code{y2}, @code{z2}. A negative @code{distance} indicates failure.

@table @asis
@item Input:
@code{dim1} (integer), @code{tag1} (integer), @code{dim2} (integer), @code{tag2} (integer)
@item Output:
@code{distance} (double), @code{x1} (double), @code{y1} (double), @code{z1} (double), @code{x2} (double), @code{y2} (double), @code{z2} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3127,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2787,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8338,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7339,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11905,Fortran}
@end table

@item gmsh/model/occ/getClosestEntities
Find the @code{n} closest entities to point (@code{x}, @code{y}, @code{z}) amongst the entities @code{dimTags}. Return the entities in @code{outDimTags} sorted by increasing distance, the corresponding distances in @code{distances}, and the correspdonding closest x, y, z coordinates, concatenated, in @code{coord}.

@table @asis
@item Input:
@code{x} (double), @code{y} (double), @code{z} (double), @code{dimTags} (vector of pairs of integers), @code{n = 1} (integer)
@item Output:
@code{outDimTags} (vector of pairs of integers), @code{distances} (vector of doubles), @code{coord} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3145,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2804,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8396,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7376,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L11976,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L116,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L97,t16.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L98,t16.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L123,t16.f90})
@end table

@item gmsh/model/occ/fuse
Compute the boolean union (the fusion) of the entities @code{objectDimTags} and @code{toolDimTags} (vectors of (dim, tag) pairs) in the OpenCASCADE CAD representation. Return the resulting entities in @code{outDimTags}, and the correspondance between input and resulting entities in @code{outDimTagsMap}. If @code{tag} is positive, try to set the tag explicitly (only valid if the boolean operation results in a single entity). Remove the object if @code{removeObject} is set. Remove the tool if @code{removeTool} is set.

@table @asis
@item Input:
@code{objectDimTags} (vector of pairs of integers), @code{toolDimTags} (vector of pairs of integers), @code{tag = -1} (integer), @code{removeObject = True} (boolean), @code{removeTool = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers), @code{outDimTagsMap} (vector of vectors of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3163,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2821,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8441,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7420,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12059,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L27,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L22,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/boolean.py#L26,boolean.py}, @url{@value{GITLAB-PREFIX}/examples/api/gui.py#L27,gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L16,tube_boundary_layer.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L20,x5.jl}, @url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L27,gui.jl})
@end table

@item gmsh/model/occ/intersect
Compute the boolean intersection (the common parts) of the entities @code{objectDimTags} and @code{toolDimTags} (vectors of (dim, tag) pairs) in the OpenCASCADE CAD representation. Return the resulting entities in @code{outDimTags}, and the correspondance between input and resulting entities in @code{outDimTagsMap}. If @code{tag} is positive, try to set the tag explicitly (only valid if the boolean operation results in a single entity). Remove the object if @code{removeObject} is set. Remove the tool if @code{removeTool} is set.

@table @asis
@item Input:
@code{objectDimTags} (vector of pairs of integers), @code{toolDimTags} (vector of pairs of integers), @code{tag = -1} (integer), @code{removeObject = True} (boolean), @code{removeTool = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers), @code{outDimTagsMap} (vector of vectors of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3181,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2838,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8485,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7470,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12142,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/boolean.py#L22,boolean.py}, @url{@value{GITLAB-PREFIX}/examples/api/gui.py#L23,gui.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L23,gui.jl})
@end table

@item gmsh/model/occ/cut
Compute the boolean difference between the entities @code{objectDimTags} and @code{toolDimTags} (given as vectors of (dim, tag) pairs) in the OpenCASCADE CAD representation. Return the resulting entities in @code{outDimTags}, and the correspondance between input and resulting entities in @code{outDimTagsMap}. If @code{tag} is positive, try to set the tag explicitly (only valid if the boolean operation results in a single entity). Remove the object if @code{removeObject} is set. Remove the tool if @code{removeTool} is set.

@table @asis
@item Input:
@code{objectDimTags} (vector of pairs of integers), @code{toolDimTags} (vector of pairs of integers), @code{tag = -1} (integer), @code{removeObject = True} (boolean), @code{removeTool = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers), @code{outDimTagsMap} (vector of vectors of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3198,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2854,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8530,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7520,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12224,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L41,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L32,t16.py}, @url{@value{GITLAB-PREFIX}/examples/api/boolean.py#L27,boolean.py}, @url{@value{GITLAB-PREFIX}/examples/api/extend_field.py#L7,extend_field.py}, @url{@value{GITLAB-PREFIX}/examples/api/gui.py#L28,gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/spherical_surf.py#L13,spherical_surf.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L30,t16.jl}, @url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L28,gui.jl}, @url{@value{GITLAB-PREFIX}/examples/api/spherical_surf.jl#L11,spherical_surf.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L44,t16.f90})
@end table

@item gmsh/model/occ/fragment
Compute the boolean fragments (general fuse) resulting from the intersection of the entities @code{objectDimTags} and @code{toolDimTags} (given as vectors of (dim, tag) pairs) in the OpenCASCADE CAD representation, making all interfaces conformal. When applied to entities of different dimensions, the lower dimensional entities will be automatically embedded in the higher dimensional entities if they are not on their boundary. Return the resulting entities in @code{outDimTags}, and the correspondance between input and resulting entities in @code{outDimTagsMap}. If @code{tag} is positive, try to set the tag explicitly (only valid if the boolean operation results in a single entity). Remove the object if @code{removeObject} is set. Remove the tool if @code{removeTool} is set.

@table @asis
@item Input:
@code{objectDimTags} (vector of pairs of integers), @code{toolDimTags} (vector of pairs of integers), @code{tag = -1} (integer), @code{removeObject = True} (boolean), @code{removeTool = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers), @code{outDimTagsMap} (vector of vectors of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3219,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2874,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8574,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7573,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12310,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L61,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L75,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L85,t20.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L43,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L54,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L70,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L68,t20.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L33,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L70,bspline_bezier_patches.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L52,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L67,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L67,t20.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L32,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L25,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L76,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L83,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L81,t20.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L44,t21.f90})
@end table

@item gmsh/model/occ/translate
Translate the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation along (@code{dx}, @code{dy}, @code{dz}).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{dx} (double), @code{dy} (double), @code{dz} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3231,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2885,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8622,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7613,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12387,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L47,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L72,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L44,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L60,t20.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L41,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L58,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L55,t19.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L70,t20.f90})
@end table

@item gmsh/model/occ/rotate
Rotate the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation by @code{angle} radians around the axis of revolution defined by the point (@code{x}, @code{y}, @code{z}) and the direction (@code{ax}, @code{ay}, @code{az}).

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{ax} (double), @code{ay} (double), @code{az} (double), @code{angle} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3242,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2895,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8647,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7641,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12426,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L78,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L64,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L69,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L54,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/fractures.py#L18,fractures.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_2d.py#L71,naca_boundary_layer_2d.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L92,naca_boundary_layer_3d.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L67,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L51,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L80,t19.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L63,t20.f90})
@end table

@item gmsh/model/occ/dilate
Scale the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation by factors @code{a}, @code{b} and @code{c} along the three coordinate axes; use (@code{x}, @code{y}, @code{z}) as the center of the homothetic transformation.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{x} (double), @code{y} (double), @code{z} (double), @code{a} (double), @code{b} (double), @code{c} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3257,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2909,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8682,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7669,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12485,Fortran}
@end table

@item gmsh/model/occ/mirror
Mirror the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation, with respect to the plane of equation @code{a} * x + @code{b} * y + @code{c} * z + @code{d} = 0.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{a} (double), @code{b} (double), @code{c} (double), @code{d} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3270,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2921,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8715,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7694,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12538,Fortran}
@end table

@item gmsh/model/occ/symmetrize
Mirror the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation, with respect to the plane of equation @code{a} * x + @code{b} * y + @code{c} * z + @code{d} = 0. (This is a deprecated synonym for @code{mirror}.)

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{a} (double), @code{b} (double), @code{c} (double), @code{d} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3282,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2932,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8743,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7719,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12582,Fortran}
@end table

@item gmsh/model/occ/affineTransform
Apply a general affine transformation matrix @code{affineTransform} (16 entries of a 4x4 matrix, by row; only the 12 first can be provided for convenience) to the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{affineTransform} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3294,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2943,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8772,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7742,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12626,Fortran}
@end table

@item gmsh/model/occ/copy
Copy the entities @code{dimTags} in the OpenCASCADE CAD representation; the new entities are returned in @code{outDimTags}.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3301,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2949,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8797,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7766,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12656,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L46,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L77,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L43,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L64,t20.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L40,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L62,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L54,t19.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L74,t20.f90})
@end table

@item gmsh/model/occ/remove
Remove the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation, provided that they are not on the boundary of higher-dimensional entities. If @code{recursive} is true, remove all the entities on their boundaries, down to dimension 0.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{recursive = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3310,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2957,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8822,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7793,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12692,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L86,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L91,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L77,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L73,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L31,pipe.py}, @url{@value{GITLAB-PREFIX}/examples/api/trimmed.py#L28,trimmed.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L17,tube_boundary_layer.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L75,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L72,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L89,t19.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L88,t20.f90})
@end table

@item gmsh/model/occ/removeAllDuplicates
Remove all duplicate entities in the OpenCASCADE CAD representation (different entities at the same geometrical location) after intersecting (using boolean fragments) all highest dimensional entities.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3318,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2964,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8845,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7811,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12720,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L75,bspline_bezier_patches.py}, @url{@value{GITLAB-PREFIX}/examples/api/hybrid_order.py#L7,hybrid_order.py}, @url{@value{GITLAB-PREFIX}/examples/api/stl_to_mesh.py#L11,stl_to_mesh.py})
@end table

@item gmsh/model/occ/healShapes
Apply various healing procedures to the entities @code{dimTags} (given as a vector of (dim, tag) pairs), or to all the entities in the model if @code{dimTags} is empty, in the OpenCASCADE CAD representation. Return the healed entities in @code{outDimTags}.

@table @asis
@item Input:
@code{dimTags = []} (vector of pairs of integers), @code{tolerance = 1e-8} (double), @code{fixDegenerated = True} (boolean), @code{fixSmallEdges = True} (boolean), @code{fixSmallFaces = True} (boolean), @code{sewFaces = True} (boolean), @code{makeSolids = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3326,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2970,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8861,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7840,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12736,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L65,bspline_bezier_patches.py}, @url{@value{GITLAB-PREFIX}/examples/api/heal.py#L13,heal.py})
@end table

@item gmsh/model/occ/convertToNURBS
Convert the entities @code{dimTags} to NURBS.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3338,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2981,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8901,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7864,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12799,Fortran}
@end table

@item gmsh/model/occ/importShapes
Import BREP, STEP or IGES shapes from the file @code{fileName} in the OpenCASCADE CAD representation. The imported entities are returned in @code{outDimTags}, as a vector of (dim, tag) pairs. If the optional argument @code{highestDimOnly} is set, only import the highest dimensional entities in the file. The optional argument @code{format} can be used to force the format of the file (currently "brep", "step" or "iges").

@table @asis
@item Input:
@code{fileName} (string), @code{highestDimOnly = True} (boolean), @code{format = ""} (string)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3348,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2990,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8920,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7894,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12825,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L28,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L24,t20.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L21,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L34,t20.f90})
@end table

@item gmsh/model/occ/importShapesNativePointer
Import an OpenCASCADE @code{shape} by providing a pointer to a native OpenCASCADE @code{TopoDS_Shape} object (passed as a pointer to void). The imported entities are returned in @code{outDimTags} as a vector of (dim, tag) pairs. If the optional argument @code{highestDimOnly} is set, only import the highest dimensional entities in @code{shape}. In Python, this function can be used for integration with PythonOCC, in which the SwigPyObject pointer of @code{TopoDS_Shape} must be passed as an int to @code{shape}, i.e., @code{shape = int(pythonocc_shape.this)}. Warning: this function is unsafe, as providing an invalid pointer will lead to undefined behavior.

@table @asis
@item Input:
@code{shape} (pointer), @code{highestDimOnly = True} (boolean)
@item Output:
@code{outDimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3364,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3005,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8953,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7927,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12873,Fortran}
@end table

@item gmsh/model/occ/getEntities
Get all the OpenCASCADE entities. If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. points if @code{dim} == 0). The entities are returned as a vector of (dim, tag) pairs.

@table @asis
@item Input:
@code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3373,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3013,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8987,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7954,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12910,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L90,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L73,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/bspline_bezier_patches.py#L70,bspline_bezier_patches.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L74,naca_boundary_layer_3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/tube_boundary_layer.py#L17,tube_boundary_layer.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L72,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L87,t20.f90})
@end table

@item gmsh/model/occ/getEntitiesInBoundingBox
Get the OpenCASCADE entities in the bounding box defined by the two points (@code{xmin}, @code{ymin}, @code{zmin}) and (@code{xmax}, @code{ymax}, @code{zmax}). If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. points if @code{dim} == 0).

@table @asis
@item Input:
@code{xmin} (double), @code{ymin} (double), @code{zmin} (double), @code{xmax} (double), @code{ymax} (double), @code{zmax} (double), @code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3382,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3021,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9013,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7987,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L12943,Fortran}
@end table

@item gmsh/model/occ/getBoundingBox
Get the bounding box (@code{xmin}, @code{ymin}, @code{zmin}), (@code{xmax}, @code{ymax}, @code{zmax}) of the OpenCASCADE entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{xmin} (double), @code{ymin} (double), @code{zmin} (double), @code{xmax} (double), @code{ymax} (double), @code{zmax} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3395,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3033,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9052,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8019,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13004,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L44,t20.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L34,t20.py}, @url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L67,naca_boundary_layer_3d.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L31,t20.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L44,t20.f90})
@end table

@item gmsh/model/occ/getCurveLoops
Get the tags @code{curveLoopTags} of the curve loops making up the surface of tag @code{surfaceTag}, as well as the tags @code{curveTags} of the curves making up each curve loop.

@table @asis
@item Input:
@code{surfaceTag} (integer)
@item Output:
@code{curveLoopTags} (vector of integers), @code{curveTags} (vector of vectors of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3409,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3046,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9100,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8049,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13059,Fortran}
@end table

@item gmsh/model/occ/getSurfaceLoops
Get the tags @code{surfaceLoopTags} of the surface loops making up the volume of tag @code{volumeTag}, as well as the tags @code{surfaceTags} of the surfaces making up each surface loop.

@table @asis
@item Input:
@code{volumeTag} (integer)
@item Output:
@code{surfaceLoopTags} (vector of integers), @code{surfaceTags} (vector of vectors of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3418,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3054,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9131,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8082,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13111,Fortran}
@end table

@item gmsh/model/occ/getMass
Get the mass of the OpenCASCADE entity of dimension @code{dim} and tag @code{tag}. If no density is attached to the entity (the default), the value corresponds respectively to the length, area and volume for @code{dim} = 1, 2 and 3.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{mass} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3428,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3062,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9162,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8115,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13163,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/step_assembly.py#L28,step_assembly.py}, @url{@value{GITLAB-PREFIX}/examples/api/volume.py#L9,volume.py})
@end table

@item gmsh/model/occ/getCenterOfMass
Get the center of mass of the OpenCASCADE entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{x} (double), @code{y} (double), @code{z} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3436,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3069,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9190,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8141,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13192,Fortran}
@end table

@item gmsh/model/occ/getMatrixOfInertia
Get the matrix of inertia (by row) of the OpenCASCADE entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
@code{mat} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3446,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3078,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9226,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8167,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13231,Fortran}
@end table

@item gmsh/model/occ/getMaxTag
Get the maximum tag of entities of dimension @code{dim} in the OpenCASCADE CAD representation.

@table @asis
@item Input:
@code{dim} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3454,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3085,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9253,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8191,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13267,Fortran}
@end table

@item gmsh/model/occ/setMaxTag
Set the maximum tag @code{maxTag} for entities of dimension @code{dim} in the OpenCASCADE CAD representation.

@table @asis
@item Input:
@code{dim} (integer), @code{maxTag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3460,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3090,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9275,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8211,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13288,Fortran}
@end table

@item gmsh/model/occ/synchronize
Synchronize the OpenCASCADE CAD representation with the current Gmsh model. This can be called at any time, but since it involves a non trivial amount of processing, the number of synchronization points should normally be minimized. Without synchronization the entities in the OpenCASCADE CAD representation are not available to any function outside of the OpenCASCADE CAD kernel functions.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3471,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3100,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9296,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8230,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13316,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L84,t16.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t17.cpp#L29,t17.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t18.cpp#L28,t18.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t19.cpp#L33,t19.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t20.cpp#L93,t20.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L67,t16.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t17.py#L28,t17.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t18.py#L27,t18.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t19.py#L30,t19.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t20.py#L75,t20.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L67,t16.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t17.jl#L25,t17.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t18.jl#L24,t18.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t19.jl#L27,t19.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t20.jl#L74,t20.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L90,t16.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t17.f90#L33,t17.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t18.f90#L37,t18.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t19.f90#L39,t19.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t20.f90#L90,t20.f90}, ...)
@end table

@end ftable

@node Namespace gmsh/model/occ/mesh, Namespace gmsh/view, Namespace gmsh/model/occ, Gmsh application programming interface
@section Namespace @code{gmsh/model/occ/mesh}: OpenCASCADE CAD kernel meshing constraints

@ftable @code
@item gmsh/model/occ/mesh/setSize
Set a mesh size constraint on the entities @code{dimTags} (given as a vector of (dim, tag) pairs) in the OpenCASCADE CAD representation. Currently only entities of dimension 0 (points) are handled.

@table @asis
@item Input:
@code{dimTags} (vector of pairs of integers), @code{size} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3480,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3105,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9320,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8259,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13331,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/naca_boundary_layer_3d.py#L89,naca_boundary_layer_3d.py})
@end table

@end ftable

@node Namespace gmsh/view, Namespace gmsh/view/option, Namespace gmsh/model/occ/mesh, Gmsh application programming interface
@section Namespace @code{gmsh/view}: post-processing view functions

@ftable @code
@item gmsh/view/add
Add a new post-processing view, with name @code{name}. If @code{tag} is positive use it (and remove the view with that tag if it already exists), otherwise associate a new tag. Return the view tag.

@table @asis
@item Input:
@code{name} (string), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3496,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3112,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9349,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8299,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13359,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L111,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L28,x3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L33,x4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L80,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L119,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L25,x3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L31,x4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L68,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L89,adapt_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L107,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L24,x3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L30,x4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L62,x5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L121,t4.f90})
@end table

@item gmsh/view/remove
Remove the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3502,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3117,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9373,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8316,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13384,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L28,plugin.py})
@end table

@item gmsh/view/getIndex
Get the index of the view with tag @code{tag} in the list of currently loaded views. This dynamic index (it can change when views are removed) is used to access view options.

@table @asis
@item Input:
@code{tag} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3509,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3123,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9390,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8337,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13404,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L103,adapt_mesh.py})
@end table

@item gmsh/view/getTags
Get the tags of all views.

@table @asis
@item Input:
-
@item Output:
@code{tags} (vector of integers)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3514,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3127,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9413,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8357,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13424,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L81,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L37,t9.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L77,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L27,t9.py}, @url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L31,plugin.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L75,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L25,t9.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L84,t8.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L32,t9.f90})
@end table

@item gmsh/view/addModelData
Add model-based post-processing data to the view with tag @code{tag}. @code{modelName} identifies the model the data is attached to. @code{dataType} specifies the type of data, currently either "NodeData", "ElementData" or "ElementNodeData". @code{step} specifies the identifier (>= 0) of the data in a sequence. @code{tags} gives the tags of the nodes or elements in the mesh to which the data is associated. @code{data} is a vector of the same length as @code{tags}: each entry is the vector of double precision numbers representing the data associated with the corresponding tag. The optional @code{time} argument associate a time value with the data. @code{numComponents} gives the number of data components (1 for scalar data, 3 for vector data, etc.) per entity; if negative, it is automatically inferred (when possible) from the input data. @code{partition} allows one to specify data in several sub-sets.

@table @asis
@item Input:
@code{tag} (integer), @code{step} (integer), @code{modelName} (string), @code{dataType} (string), @code{tags} (vector of sizes), @code{data} (vector of vectors of doubles), @code{time = 0.} (double), @code{numComponents = -1} (integer), @code{partition = 0} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3530,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3142,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9435,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8397,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13460,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L90,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L16,plugin.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L229,poisson.py}, @url{@value{GITLAB-PREFIX}/examples/api/view.py#L19,view.py})
@end table

@item gmsh/view/addHomogeneousModelData
Add homogeneous model-based post-processing data to the view with tag @code{tag}. The arguments have the same meaning as in @code{addModelData}, except that @code{data} is supposed to be homogeneous and is thus flattened in a single vector. For data types that can lead to different data sizes per tag (like "ElementNodeData"), the data should be padded.

@table @asis
@item Input:
@code{tag} (integer), @code{step} (integer), @code{modelName} (string), @code{dataType} (string), @code{tags} (vector of sizes), @code{data} (vector of doubles), @code{time = 0.} (double), @code{numComponents = -1} (integer), @code{partition = 0} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3547,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3158,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9482,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8428,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13541,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L35,x4.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L33,x4.py}, @url{@value{GITLAB-PREFIX}/examples/api/copy_mesh.py#L41,copy_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_element_size.py#L20,view_element_size.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_renumbering.py#L18,view_renumbering.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L32,x4.jl})
@end table

@item gmsh/view/getModelData
Get model-based post-processing data from the view with tag @code{tag} at step @code{step}. Return the @code{data} associated to the nodes or the elements with tags @code{tags}, as well as the @code{dataType} and the number of components @code{numComponents}.

@table @asis
@item Input:
@code{tag} (integer), @code{step} (integer)
@item Output:
@code{dataType} (string), @code{tags} (vector of sizes), @code{data} (vector of vectors of doubles), @code{time} (double), @code{numComponents} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3563,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3173,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9522,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8456,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13608,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/get_data_perf.py#L20,get_data_perf.py}, @url{@value{GITLAB-PREFIX}/examples/api/mesh_quality.py#L19,mesh_quality.py}, @url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L20,plugin.py})
@end table

@item gmsh/view/getHomogeneousModelData
Get homogeneous model-based post-processing data from the view with tag @code{tag} at step @code{step}. The arguments have the same meaning as in @code{getModelData}, except that @code{data} is returned flattened in a single vector, with the appropriate padding if necessary.

@table @asis
@item Input:
@code{tag} (integer), @code{step} (integer)
@item Output:
@code{dataType} (string), @code{tags} (vector of sizes), @code{data} (vector of doubles), @code{time} (double), @code{numComponents} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3577,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3186,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9568,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8498,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13683,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/get_data_perf.py#L25,get_data_perf.py})
@end table

@item gmsh/view/addListData
Add list-based post-processing data to the view with tag @code{tag}. List-based datasets are independent from any model and any mesh. @code{dataType} identifies the data by concatenating the field type ("S" for scalar, "V" for vector, "T" for tensor) and the element type ("P" for point, "L" for line, "T" for triangle, "S" for tetrahedron, "I" for prism, "H" for hexaHedron, "Y" for pyramid). For example @code{dataType} should be "ST" for a scalar field on triangles. @code{numEle} gives the number of elements in the data. @code{data} contains the data for the @code{numEle} elements, concatenated, with node coordinates followed by values per node, repeated for each step: [e1x1, ..., e1xn, e1y1, ..., e1yn, e1z1, ..., e1zn, e1v1..., e1vN, e2x1, ...].

@table @asis
@item Input:
@code{tag} (integer), @code{dataType} (string), @code{numEle} (integer), @code{data} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3597,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3205,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9614,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8538,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13756,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L56,x3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L81,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L47,x3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L69,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/normals.py#L42,normals.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_adaptive_to_mesh.py#L42,view_adaptive_to_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_combine.py#L18,view_combine.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L47,x3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L63,x5.jl})
@end table

@item gmsh/view/getListData
Get list-based post-processing data from the view with tag @code{tag}. Return the types @code{dataTypes}, the number of elements @code{numElements} for each data type and the @code{data} for each data type. If @code{returnAdaptive} is set, return the data obtained after adaptive refinement, if available.

@table @asis
@item Input:
@code{tag} (integer), @code{returnAdaptive = False} (boolean)
@item Output:
@code{dataType} (vector of strings), @code{numElements} (vector of integers), @code{data} (vector of vectors of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3608,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3215,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9648,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8565,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13795,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L35,plugin.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_adaptive_to_mesh.py#L50,view_adaptive_to_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/volume.py#L19,volume.py})
@end table

@item gmsh/view/addListDataString
Add a string to a list-based post-processing view with tag @code{tag}. If @code{coord} contains 3 coordinates the string is positioned in the 3D model space ("3D string"); if it contains 2 coordinates it is positioned in the 2D graphics viewport ("2D string"). @code{data} contains one or more (for multistep views) strings. @code{style} contains key-value pairs of styling parameters, concatenated. Available keys are "Font" (possible values: "Times-Roman", "Times-Bold", "Times-Italic", "Times-BoldItalic", "Helvetica", "Helvetica-Bold", "Helvetica-Oblique", "Helvetica-BoldOblique", "Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique", "Symbol", "ZapfDingbats", "Screen"), "FontSize" and "Align" (possible values: "Left" or "BottomLeft", "Center" or "BottomCenter", "Right" or "BottomRight", "TopLeft", "TopCenter", "TopRight", "CenterLeft", "CenterCenter", "CenterRight").

@table @asis
@item Input:
@code{tag} (integer), @code{coord} (vector of doubles), @code{data} (vector of strings), @code{style = []} (vector of strings)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3628,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3235,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9686,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8610,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13874,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L115,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L80,x3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L123,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L72,x3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L111,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L73,x3.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L125,t4.f90})
@end table

@item gmsh/view/getListDataStrings
Get list-based post-processing data strings (2D strings if @code{dim} == 2, 3D strings if @code{dim} = 3) from the view with tag @code{tag}. Return the coordinates in @code{coord}, the strings in @code{data} and the styles in @code{style}.

@table @asis
@item Input:
@code{tag} (integer), @code{dim} (integer)
@item Output:
@code{coord} (vector of doubles), @code{data} (vector of strings), @code{style} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3638,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3244,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9725,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8636,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13928,Fortran}
@end table

@item gmsh/view/setInterpolationMatrices
Set interpolation matrices for the element family @code{type} ("Line", "Triangle", "Quadrangle", "Tetrahedron", "Hexahedron", "Prism", "Pyramid") in the view @code{tag}. The approximation of the values over an element is written as a linear combination of @code{d} basis functions f_i(u, v, w) = sum_(j = 0, ..., @code{d} - 1) @code{coef}[i][j] u^@code{exp}[j][0] v^@code{exp}[j][1] w^@code{exp}[j][2], i = 0, ..., @code{d}-1, with u, v, w the coordinates in the reference element. The @code{coef} matrix (of size @code{d} x @code{d}) and the @code{exp} matrix (of size @code{d} x 3) are stored as vectors, by row. If @code{dGeo} is positive, use @code{coefGeo} and @code{expGeo} to define the interpolation of the x, y, z coordinates of the element in terms of the u, v, w coordinates, in exactly the same way. If @code{d} < 0, remove the interpolation matrices.

@table @asis
@item Input:
@code{tag} (integer), @code{type} (string), @code{d} (integer), @code{coef} (vector of doubles), @code{exp} (vector of doubles), @code{dGeo = 0} (integer), @code{coefGeo = []} (vector of doubles), @code{expGeo = []} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3657,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3262,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9762,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8681,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L13997,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L126,x3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L110,x3.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_adaptive_to_mesh.py#L22,view_adaptive_to_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_list_isoparametric.py#L33,view_list_isoparametric.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_list_subparametric.py#L35,view_list_subparametric.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_list_superparametric.py#L35,view_list_superparametric.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L111,x3.jl})
@end table

@item gmsh/view/addAlias
Add a post-processing view as an @code{alias} of the reference view with tag @code{refTag}. If @code{copyOptions} is set, copy the options of the reference view. If @code{tag} is positive use it (and remove the view with that tag if it already exists), otherwise associate a new tag. Return the view tag.

@table @asis
@item Input:
@code{refTag} (integer), @code{copyOptions = False} (boolean), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3672,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3276,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9808,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8706,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14065,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/view_combine.py#L27,view_combine.py})
@end table

@item gmsh/view/combine
Combine elements (if @code{what} == "elements") or steps (if @code{what} == "steps") of all views (@code{how} == "all"), all visible views (@code{how} == "visible") or all views having the same name (@code{how} == "name"). Remove original views if @code{remove} is set.

@table @asis
@item Input:
@code{what} (string), @code{how} (string), @code{remove = True} (boolean), @code{copyOptions = True} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3682,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3285,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9836,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8730,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14098,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/view_combine.py#L23,view_combine.py})
@end table

@item gmsh/view/probe
Probe the view @code{tag} for its @code{values} at point (@code{x}, @code{y}, @code{z}). If no match is found, @code{value} is returned empty. Return only the value at step @code{step} is @code{step} is positive. Return only values with @code{numComp} if @code{numComp} is positive. Return the gradient of the @code{values} if @code{gradient} is set. If @code{distanceMax} is zero, only return a result if an exact match inside an element in the view is found; if @code{distanceMax} is positive and an exact match is not found, return the value at the closest node if it is closer than @code{distanceMax}; if @code{distanceMax} is negative and an exact match is not found, always return the value at the closest node. The distance to the match is returned in @code{distance}. Return the result from the element described by its coordinates if @code{xElementCoord}, @code{yElementCoord} and @code{zElementCoord} are provided. If @code{dim} is >= 0, return only matches from elements of the specified dimension.

@table @asis
@item Input:
@code{tag} (integer), @code{x} (double), @code{y} (double), @code{z} (double), @code{step = -1} (integer), @code{numComp = -1} (integer), @code{gradient = False} (boolean), @code{distanceMax = 0.} (double), @code{xElemCoord = []} (vector of doubles), @code{yElemCoord = []} (vector of doubles), @code{zElemCoord = []} (vector of doubles), @code{dim = -1} (integer)
@item Output:
@code{values} (vector of doubles), @code{distance} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3702,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3304,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9862,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8773,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14143,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L98,x3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L86,x3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L87,x3.jl})
@end table

@item gmsh/view/write
Write the view to a file @code{fileName}. The export format is determined by the file extension. Append to the file if @code{append} is set.

@table @asis
@item Input:
@code{tag} (integer), @code{fileName} (string), @code{append = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3721,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3322,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9927,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8797,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14243,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L104,x3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x4.cpp#L88,x4.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L89,x3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x4.py#L81,x4.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L92,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/normals.py#L43,normals.py}, @url{@value{GITLAB-PREFIX}/examples/api/plugin.py#L33,plugin.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L90,x3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x4.jl#L83,x4.jl})
@end table

@item gmsh/view/setVisibilityPerWindow
Set the global visibility of the view @code{tag} per window to @code{value}, where @code{windowIndex} identifies the window in the window list.

@table @asis
@item Input:
@code{tag} (integer), @code{value} (integer), @code{windowIndex = 0} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3729,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3329,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9949,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8817,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14272,Fortran}
@end table

@end ftable

@node Namespace gmsh/view/option, Namespace gmsh/algorithm, Namespace gmsh/view, Gmsh application programming interface
@section Namespace @code{gmsh/view/option}: view option handling functions

@ftable @code
@item gmsh/view/option/setNumber
Set the numerical option @code{name} to value @code{value} for the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string), @code{value} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3739,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3336,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9978,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8846,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14301,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L88,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L78,t9.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L87,x3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x5.cpp#L82,x5.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L84,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L67,t9.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L79,x3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L70,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/view_adaptive_to_mesh.py#L45,view_adaptive_to_mesh.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L83,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L66,t9.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L80,x3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L64,x5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L92,t8.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L73,t9.f90})
@end table

@item gmsh/view/option/getNumber
Get the @code{value} of the numerical option @code{name} for the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string)
@item Output:
@code{value} (double)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3747,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3342,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10001,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8868,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14329,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L125,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/x3.cpp#L90,x3.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L125,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x3.py#L81,x3.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L127,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x3.jl#L82,x3.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L134,t8.f90})
@end table

@item gmsh/view/option/setString
Set the string option @code{name} to value @code{value} for the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string), @code{value} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3754,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3348,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10027,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8889,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14357,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L151,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L100,t8.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L161,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L96,t8.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L148,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L95,t8.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L163,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L104,t8.f90})
@end table

@item gmsh/view/option/getString
Get the @code{value} of the string option @code{name} for the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string)
@item Output:
@code{value} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3761,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3354,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10049,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8911,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14385,Fortran}
@end table

@item gmsh/view/option/setColor
Set the color option @code{name} to the RGBA value (@code{r}, @code{g}, @code{b}, @code{a}) for the view with tag @code{tag}, where where @code{r}, @code{g}, @code{b} and @code{a} should be integers between 0 and 255.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string), @code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a = 255} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3770,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3362,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10075,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8938,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14417,Fortran}
@end table

@item gmsh/view/option/getColor
Get the @code{r}, @code{g}, @code{b}, @code{a} value of the color option @code{name} for the view with tag @code{tag}.

@table @asis
@item Input:
@code{tag} (integer), @code{name} (string)
@item Output:
@code{r} (integer), @code{g} (integer), @code{b} (integer), @code{a} (integer)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3781,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3372,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10105,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8964,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14461,Fortran}
@end table

@item gmsh/view/option/copy
Copy the options from the view with tag @code{refTag} to the view with tag @code{tag}.

@table @asis
@item Input:
@code{refTag} (integer), @code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3792,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3382,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10145,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8987,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14505,Fortran}
@end table

@end ftable

@node Namespace gmsh/algorithm, Namespace gmsh/plugin, Namespace gmsh/view/option, Gmsh application programming interface
@section Namespace @code{gmsh/algorithm}: raw algorithms

@ftable @code
@item gmsh/algorithm/triangulate
Triangulate the points given in the @code{coordinates} vector as concatenated pairs of u, v coordinates, with (optional) constrained edges given in the @code{edges} vector as pairs of indexes (with numbering starting at 1), and return the triangles as concatenated triplets of point indexes (with numbering starting at 1) in @code{triangles}.

@table @asis
@item Input:
@code{coordinates} (vector of doubles), @code{edges = []} (vector of sizes)
@item Output:
@code{triangles} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3808,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3391,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10171,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9025,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14532,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/raw_triangulation.py#L14,raw_triangulation.py})
@end table

@item gmsh/algorithm/tetrahedralize
Tetrahedralize the points given in the @code{coordinates} vector as concatenated triplets of x, y, z coordinates, with (optional) constrained triangles given in the @code{triangles} vector as triplets of indexes (with numbering starting at 1), and return the tetrahedra as concatenated quadruplets of point indexes (with numbering starting at 1) in @code{tetrahedra}. Steiner points might be added in the @code{steiner} vector.

@table @asis
@item Input:
@code{coordinates} (vector of doubles), @code{triangles = []} (vector of sizes)
@item Output:
@code{tetrahedra} (vector of sizes), @code{steiner} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3820,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3402,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10202,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9055,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14578,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/raw_tetrahedralization.py#L16,raw_tetrahedralization.py})
@end table

@end ftable

@node Namespace gmsh/plugin, Namespace gmsh/graphics, Namespace gmsh/algorithm, Gmsh application programming interface
@section Namespace @code{gmsh/plugin}: plugin functions

@ftable @code
@item gmsh/plugin/setNumber
Set the numerical option @code{option} to the value @code{value} for plugin @code{name}. Plugins available in the official Gmsh release are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-plugins,"Gmsh plugins" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string), @code{option} (string), @code{value} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3835,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3412,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10245,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9094,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14634,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L46,t9.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L144,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L35,t9.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L131,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L103,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/crack3d.py#L29,crack3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/crack.py#L33,crack.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L34,t9.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L130,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L41,t9.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L157,t21.f90})
@end table

@item gmsh/plugin/setString
Set the string option @code{option} to the value @code{value} for plugin @code{name}. Plugins available in the official Gmsh release are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-plugins,"Gmsh plugins" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string), @code{option} (string), @code{value} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3845,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3421,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10270,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9117,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14665,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L62,t9.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L51,t9.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L50,t9.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L57,t9.f90})
@end table

@item gmsh/plugin/run
Run the plugin @code{name}. Return the tag of the created view (if any). Plugins available in the official Gmsh release are listed in the @url{https://gmsh.info/doc/texinfo/gmsh.html#Gmsh-plugins,"Gmsh plugins" chapter of the Gmsh reference manual}.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3855,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3430,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10295,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9140,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14696,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L48,t9.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L147,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L37,t9.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L134,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/adapt_mesh.py#L104,adapt_mesh.py}, @url{@value{GITLAB-PREFIX}/examples/api/crack3d.py#L32,crack3d.py}, @url{@value{GITLAB-PREFIX}/examples/api/crack.py#L36,crack.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L36,t9.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L133,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L43,t9.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L160,t21.f90})
@end table

@end ftable

@node Namespace gmsh/graphics, Namespace gmsh/fltk, Namespace gmsh/plugin, Gmsh application programming interface
@section Namespace @code{gmsh/graphics}: graphics functions

@ftable @code
@item gmsh/graphics/draw
Draw all the OpenGL scenes.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3864,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3434,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10324,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9165,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14716,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L129,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L155,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L129,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L192,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L120,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L153,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L115,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L162,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/split_window.py#L44,split_window.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L120,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L156,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L113,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L164,t21.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L169,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L165,t8.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L146,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L195,t21.f90})
@end table

@end ftable

@node Namespace gmsh/fltk, Namespace gmsh/parser, Namespace gmsh/graphics, Gmsh application programming interface
@section Namespace @code{gmsh/fltk}: FLTK graphical user interface functions

@ftable @code
@item gmsh/fltk/initialize
Create the FLTK graphical user interface. Can only be called in the main thread.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3874,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3438,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10343,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9190,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14730,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L136,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L71,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L136,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L199,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L124,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L68,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L119,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L166,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L112,custom_gui.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L126,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L65,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L119,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L170,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/gui.jl#L11,gui.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L58,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L50,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L109,t21.f90})
@end table

@item gmsh/fltk/finalize
Close the FLTK graphical user interface. Can only be called in the main thread.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3880,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3442,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10357,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9204,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14744,Fortran}
@end table

@item gmsh/fltk/wait
Wait at most @code{time} seconds for user interface events and return. If @code{time} < 0, wait indefinitely. First automatically create the user interface if it has not yet been initialized. Can only be called in the main thread.

@table @asis
@item Input:
@code{time = -1.} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3887,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3447,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10371,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9223,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14759,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L138,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L138,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L201,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L126,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L121,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L168,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L115,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L225,prepro.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L128,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L121,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L172,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L73,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L60,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L52,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L111,t21.f90})
@end table

@item gmsh/fltk/update
Update the user interface (potentially creating new widgets and windows). First automatically create the user interface if it has not yet been initialized. Can only be called in the main thread: use @code{awake("update")} to trigger an update of the user interface from another thread.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3895,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3454,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10390,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9240,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14780,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L84,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L191,prepro.py})
@end table

@item gmsh/fltk/awake
Awake the main user interface thread and process pending events, and optionally perform an action (currently the only @code{action} allowed is "update"). 

@table @asis
@item Input:
@code{action = ""} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3902,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3459,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10406,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9258,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14795,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L66,custom_gui.py})
@end table

@item gmsh/fltk/lock
Block the current thread until it can safely modify the user interface.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3907,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3463,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10425,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9272,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14813,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L59,custom_gui.py})
@end table

@item gmsh/fltk/unlock
Release the lock that was set using lock.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3912,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3466,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10438,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9286,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14826,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L61,custom_gui.py})
@end table

@item gmsh/fltk/run
Run the event loop of the graphical user interface, i.e. repeatedly call @code{wait()}. First automatically create the user interface if it has not yet been initialized. If an @code{optionFileName} is given, load it before entering the loop, and save all options and visibility information into it after exiting the loop. Can only be called in the main thread.

@table @asis
@item Input:
@code{optionFileName = ""} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3921,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3473,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10451,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9307,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14843,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L150,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L158,t2.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t4.cpp#L171,t4.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t5.cpp#L225,t5.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t6.cpp#L104,t6.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t1.py#L149,t1.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t2.py#L150,t2.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t4.py#L180,t4.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t5.py#L219,t5.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t6.py#L104,t6.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t1.jl#L149,t1.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t2.jl#L148,t2.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t4.jl#L166,t4.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t5.jl#L216,t5.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t6.jl#L103,t6.jl}, ...), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t1.f90#L151,t1.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t2.f90#L164,t2.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t4.f90#L181,t4.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t5.f90#L170,t5.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t6.f90#L110,t6.f90}, ...)
@end table

@item gmsh/fltk/isAvailable
Check if the user interface is available (e.g. to detect if it has been closed).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3927,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3478,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10472,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9323,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14862,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L137,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L137,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L200,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L125,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L120,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L167,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L114,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L211,prepro.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L127,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L120,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L171,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L72,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L59,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L51,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L110,t21.f90})
@end table

@item gmsh/fltk/selectEntities
Select entities in the user interface. Return the selected entities as a vector of (dim, tag) pairs. If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. points if @code{dim} == 0).

@table @asis
@item Input:
@code{dim = -1} (integer)
@item Output:
@code{dimTags} (vector of pairs of integers)
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3934,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3483,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10490,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9346,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14879,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L207,prepro.py})
@end table

@item gmsh/fltk/selectElements
Select elements in the user interface.

@table @asis
@item Input:
-
@item Output:
@code{elementTags} (vector of sizes)
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3940,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3488,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10518,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9370,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14911,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/select_elements.py#L14,select_elements.py})
@end table

@item gmsh/fltk/selectViews
Select views in the user interface.

@table @asis
@item Input:
-
@item Output:
@code{viewTags} (vector of integers)
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3945,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3492,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10542,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9393,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14938,Fortran}
@end table

@item gmsh/fltk/splitCurrentWindow
Split the current window horizontally (if @code{how} == "h") or vertically (if @code{how} == "v"), using ratio @code{ratio}. If @code{how} == "u", restore a single window.

@table @asis
@item Input:
@code{how = "v"} (string), @code{ratio = 0.5} (double)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3952,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3498,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10566,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9416,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14967,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/split_window.py#L21,split_window.py})
@end table

@item gmsh/fltk/setCurrentWindow
Set the current window by speficying its index (starting at 0) in the list of all windows. When new windows are created by splits, new windows are appended at the end of the list.

@table @asis
@item Input:
@code{windowIndex = 0} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3960,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3505,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10588,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9436,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L14992,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/split_window.py#L36,split_window.py})
@end table

@item gmsh/fltk/setStatusMessage
Set a status message in the current window. If @code{graphics} is set, display the message inside the graphic window instead of the status bar.

@table @asis
@item Input:
@code{message} (string), @code{graphics = False} (boolean)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3966,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3510,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10608,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9456,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15011,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L204,prepro.py}, @url{@value{GITLAB-PREFIX}/examples/api/select_elements.py#L13,select_elements.py})
@end table

@item gmsh/fltk/showContextWindow
Show context window for the entity of dimension @code{dim} and tag @code{tag}.

@table @asis
@item Input:
@code{dim} (integer), @code{tag} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3972,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3515,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10629,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9475,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15034,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L213,prepro.py})
@end table

@item gmsh/fltk/openTreeItem
Open the @code{name} item in the menu tree.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3978,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3520,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10649,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9493,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15057,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L223,prepro.py})
@end table

@item gmsh/fltk/closeTreeItem
Close the @code{name} item in the menu tree.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3983,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3524,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10667,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9511,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15075,Fortran}
@end table

@end ftable

@node Namespace gmsh/parser, Namespace gmsh/onelab, Namespace gmsh/fltk, Gmsh application programming interface
@section Namespace @code{gmsh/parser}: parser functions

@ftable @code
@item gmsh/parser/getNames
Get the names of the variables in the Gmsh parser matching the @code{search} regular expression. If @code{search} is empty, return all the names.

@table @asis
@item Input:
@code{search = ""} (string)
@item Output:
@code{names} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3993,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3529,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10691,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9544,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15094,Fortran}
@end table

@item gmsh/parser/setNumber
Set the value of the number variable @code{name} in the Gmsh parser. Create the variable if it does not exist; update the value if the variable exists.

@table @asis
@item Input:
@code{name} (string), @code{value} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4000,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3535,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10716,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9568,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15125,Fortran}
@end table

@item gmsh/parser/setString
Set the value of the string variable @code{name} in the Gmsh parser. Create the variable if it does not exist; update the value if the variable exists.

@table @asis
@item Input:
@code{name} (string), @code{value} (vector of strings)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4007,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3541,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10738,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9588,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15152,Fortran}
@end table

@item gmsh/parser/getNumber
Get the value of the number variable @code{name} from the Gmsh parser. Return an empty vector if the variable does not exist.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4014,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3547,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10760,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9610,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15184,Fortran}
@end table

@item gmsh/parser/getString
Get the value of the string variable @code{name} from the Gmsh parser. Return an empty vector if the variable does not exist.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4021,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3553,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10785,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9635,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15215,Fortran}
@end table

@item gmsh/parser/clear
Clear all the Gmsh parser variables, or remove a single variable if @code{name} is given.

@table @asis
@item Input:
@code{name = ""} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4028,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3559,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10810,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9658,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15246,Fortran}
@end table

@item gmsh/parser/parse
Parse the file @code{fileName} with the Gmsh parser.

@table @asis
@item Input:
@code{fileName} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4033,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3563,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10828,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9675,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15264,Fortran}
@end table

@end ftable

@node Namespace gmsh/onelab, Namespace gmsh/logger, Namespace gmsh/parser, Gmsh application programming interface
@section Namespace @code{gmsh/onelab}: ONELAB server functions

@ftable @code
@item gmsh/onelab/set
Set one or more parameters in the ONELAB database, encoded in @code{format}.

@table @asis
@item Input:
@code{data} (string), @code{format = "json"} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4042,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3567,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10851,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9704,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15282,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L106,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L95,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L57,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L99,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L82,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L45,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L33,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L9,onelab_test.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L99,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L80,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L44,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.jl#L7,onelab_test.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L29,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L43,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L22,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L57,t21.f90})
@end table

@item gmsh/onelab/get
Get all the parameters (or a single one if @code{name} is specified) from the ONELAB database, encoded in @code{format}.

@table @asis
@item Input:
@code{name = ""} (string), @code{format = "json"} (string)
@item Output:
@code{data} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4049,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3573,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10870,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9726,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15306,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/onelab_run_auto.py#L31,onelab_run_auto.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L35,onelab_test.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L173,prepro.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/onelab_test.jl#L33,onelab_test.jl})
@end table

@item gmsh/onelab/getNames
Get the names of the parameters in the ONELAB database matching the @code{search} regular expression. If @code{search} is empty, return all the names.

@table @asis
@item Input:
@code{search = ""} (string)
@item Output:
@code{names} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4057,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3580,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10896,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9749,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15337,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L175,prepro.py})
@end table

@item gmsh/onelab/setNumber
Set the value of the number parameter @code{name} in the ONELAB database. Create the parameter if it does not exist; update the value if the parameter exists.

@table @asis
@item Input:
@code{name} (string), @code{value} (vector of doubles)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4065,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3587,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10921,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9773,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15369,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L67,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_run.py#L18,onelab_run.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L40,onelab_test.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/onelab_test.jl#L38,onelab_test.jl})
@end table

@item gmsh/onelab/setString
Set the value of the string parameter @code{name} in the ONELAB database. Create the parameter if it does not exist; update the value if the parameter exists.

@table @asis
@item Input:
@code{name} (string), @code{value} (vector of strings)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4073,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3594,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10944,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9793,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15397,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L127,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L127,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L190,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L118,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L113,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L160,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L56,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L41,onelab_test.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L118,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L111,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L162,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_test.jl#L39,onelab_test.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L64,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L167,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L144,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L193,t21.f90})
@end table

@item gmsh/onelab/getNumber
Get the value of the number parameter @code{name} from the ONELAB database. Return an empty vector if the parameter does not exist.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (vector of doubles)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4080,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3600,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10967,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9815,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15429,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L69,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L37,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L109,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L64,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L29,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L95,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L41,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L177,prepro.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L63,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L25,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L94,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L40,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L135,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L77,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L123,t21.f90})
@end table

@item gmsh/onelab/getString
Get the value of the string parameter @code{name} from the ONELAB database. Return an empty vector if the parameter does not exist.

@table @asis
@item Input:
@code{name} (string)
@item Output:
@code{value} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4087,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3606,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10992,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9840,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15460,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t3.cpp#L125,t3.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L125,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t21.cpp#L188,t21.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t3.py#L116,t3.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t13.py#L111,t13.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t21.py#L158,t21.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L75,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/prepro.py#L181,prepro.py}, ...), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t3.jl#L116,t3.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t13.jl#L109,t13.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t21.jl#L160,t21.jl}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.jl#L62,terrain_bspline.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t3.f90#L164,t3.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t13.f90#L141,t13.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t21.f90#L190,t21.f90})
@end table

@item gmsh/onelab/getChanged
Check if any parameters in the ONELAB database used by the client @code{name} have been changed.

@table @asis
@item Input:
@code{name} (string)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4094,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3612,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11017,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9865,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15491,Fortran}
@end table

@item gmsh/onelab/setChanged
Set the changed flag to value @code{value} for all the parameters in the ONELAB database used by the client @code{name}.

@table @asis
@item Input:
@code{name} (string), @code{value} (integer)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4100,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3617,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11039,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9885,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15512,Fortran}
@end table

@item gmsh/onelab/clear
Clear the ONELAB database, or remove a single parameter if @code{name} is given.

@table @asis
@item Input:
@code{name = ""} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4106,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3622,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11060,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9903,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15535,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L44,onelab_test.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/onelab_test.jl#L42,onelab_test.jl})
@end table

@item gmsh/onelab/run
Run a ONELAB client. If @code{name} is provided, create a new ONELAB client with name @code{name} and executes @code{command}. If not, try to run a client that might be linked to the processed input files.

@table @asis
@item Input:
@code{name = ""} (string), @code{command = ""} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4113,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3628,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11077,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9923,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15555,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/onelab_run.py#L24,onelab_run.py}, @url{@value{GITLAB-PREFIX}/examples/api/onelab_run_auto.py#L29,onelab_run_auto.py})
@end table

@end ftable

@node Namespace gmsh/logger, , Namespace gmsh/onelab, Gmsh application programming interface
@section Namespace @code{gmsh/logger}: information logging functions

@ftable @code
@item gmsh/logger/write
Write a @code{message}. @code{level} can be "info", "warning" or "error".

@table @asis
@item Input:
@code{message} (string), @code{level = "info"} (string)
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4123,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3633,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11104,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9952,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15578,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t7.cpp#L23,t7.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t8.cpp#L41,t8.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t9.cpp#L31,t9.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L26,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L34,t16.cpp}, ...), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t8.py#L79,t8.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/t9.py#L29,t9.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x5.py#L91,x5.py}, @url{@value{GITLAB-PREFIX}/examples/api/custom_gui.py#L60,custom_gui.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain_stl.py#L26,terrain_stl.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t8.jl#L77,t8.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/t9.jl#L27,t9.jl}, @url{@value{GITLAB-PREFIX}/tutorials/julia/x5.jl#L85,x5.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t8.f90#L86,t8.f90}, @url{@value{GITLAB-PREFIX}/tutorials/fortran/t9.f90#L34,t9.f90})
@end table

@item gmsh/logger/start
Start logging messages.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4129,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3638,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11123,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9966,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15601,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L27,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L25,t16.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L23,t16.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L37,t16.f90})
@end table

@item gmsh/logger/get
Get logged messages.

@table @asis
@item Input:
-
@item Output:
@code{log} (vector of strings)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4134,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3641,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11136,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9985,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15614,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L148,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L127,t16.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L129,t16.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L159,t16.f90})
@end table

@item gmsh/logger/stop
Stop logging messages.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4139,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3645,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11157,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10003,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15639,Fortran}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L150,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L129,t16.py}), Julia (@url{@value{GITLAB-PREFIX}/tutorials/julia/t16.jl#L131,t16.jl}), Fortran (@url{@value{GITLAB-PREFIX}/tutorials/fortran/t16.f90#L162,t16.f90})
@end table

@item gmsh/logger/getWallTime
Return wall clock time (in s).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
double
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4144,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3648,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11170,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10019,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15652,Fortran}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/import_perf.py#L8,import_perf.py}), Julia (@url{@value{GITLAB-PREFIX}/examples/api/import_perf.jl#L7,import_perf.jl})
@end table

@item gmsh/logger/getCpuTime
Return CPU time (in s).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
double
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4149,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3651,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11188,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10036,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15667,Fortran}
@end table

@item gmsh/logger/getMemory
Return memory usage (in Mb).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
double
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4154,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3654,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11206,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10053,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15682,Fortran}
@end table

@item gmsh/logger/getTotalMemory
Return total available memory (in Mb).

@table @asis
@item Input:
-
@item Output:
-
@item Return:
double
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4159,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3657,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11224,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10070,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15697,Fortran}
@end table

@item gmsh/logger/getLastError
Return last error message, if any.

@table @asis
@item Input:
-
@item Output:
@code{error} (string)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L4164,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3660,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11242,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L10090,Julia}, @url{@value{GITLAB-PREFIX}/api/gmsh.f90#L15712,Fortran}
@end table

@end ftable

