@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/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#L263,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L56,Julia}
@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}, ...)
@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#L294,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L72,Julia}
@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#L310,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L87,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L174,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L170,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#L163,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}, ...)
@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#L325,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L106,Julia}
@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}, ...)
@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#L343,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L125,Julia}
@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}, ...)
@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#L361,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L142,Julia}
@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}, ...)
@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#L377,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L156,Julia}
@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})
@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#L397,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L186,Julia}
@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}, ...)
@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#L420,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L210,Julia}
@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})
@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#L447,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L233,Julia}
@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})
@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#L470,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L257,Julia}
@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#L497,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L286,Julia}
@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})
@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#L528,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L314,Julia}
@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})
@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#L569,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L333,Julia}
@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#L589,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L362,Julia}
@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}, ...)
@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#L606,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L376,Julia}
@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#L619,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L395,Julia}
@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#L640,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L418,Julia}
@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})
@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#L662,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L439,Julia}
@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#L681,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L460,Julia}
@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#L704,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L480,Julia}
@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#L722,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L505,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t13.cpp#L74,t13.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L114,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#L97,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}, ...)
@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#L750,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L529,Julia}
@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#L772,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L551,Julia}
@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})
@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#L798,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L571,Julia}
@end table

@item gmsh/model/getPhysicalGroups
Get all the physical groups in the current model. If @code{dim} is >= 0, return only the entities of the specified dimension (e.g. physical 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#L260,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L212,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L816,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L594,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L83,poisson.py})
@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#L267,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L218,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L842,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L621,Julia}
@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#L275,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L225,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L869,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L646,Julia}
@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#L282,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L231,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L894,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L673,Julia}
@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})
@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#L292,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L240,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L921,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L702,Julia}
@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}, ...)
@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#L301,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L248,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L952,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L721,Julia}
@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#L306,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L252,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L972,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L743,Julia}
@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#L313,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L258,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L994,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L765,Julia}
@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})
@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#L320,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L264,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1020,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L785,Julia}
@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#L326,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L269,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1038,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L806,Julia}
@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 = True} (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#L339,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L281,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1061,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L835,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t14.cpp#L88,t14.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L118,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#L100,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}, ...)
@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#L351,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L292,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1098,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L867,Julia}
@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})
@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#L362,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L302,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1132,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L902,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L123,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#L105,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})
@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#L376,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L315,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1171,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L935,Julia}
@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})
@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#L388,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L326,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1220,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L958,Julia}
@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})
@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#L397,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L333,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1237,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L984,Julia}
@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}, ...)
@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#L407,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L342,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1267,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1006,Julia}
@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})
@end table

@item gmsh/model/getType
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#L413,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L347,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1291,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1030,Julia}
@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})
@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#L422,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L355,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1317,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1057,Julia}
@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})
@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#L430,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L362,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1350,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1076,Julia}
@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#L436,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L366,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1367,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1099,Julia}
@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})
@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#L449,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L378,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1394,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1130,Julia}
@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})
@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#L465,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L393,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1429,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1163,Julia}
@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#L482,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L410,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1466,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1198,Julia}
@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#L494,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L421,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1505,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1228,Julia}
@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})
@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#L505,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L431,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1538,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1259,Julia}
@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#L518,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L443,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1581,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1296,Julia}
@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})
@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#L530,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L454,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1611,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1327,Julia}
@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#L539,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L462,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1645,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1354,Julia}
@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})
@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#L551,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L473,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1677,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1387,Julia}
@end table

@item gmsh/model/getClosestPoint
Get the points @code{closestCoord} on the entity of dimension @code{dim} 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, ...].

@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#L564,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L485,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1709,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1416,Julia}
@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#L578,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L498,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1748,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1452,Julia}
@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})
@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#L590,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L509,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1786,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1477,Julia}
@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#L597,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L515,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1811,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1501,Julia}
@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#L605,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L522,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1837,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1522,Julia}
@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#L614,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L530,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1858,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1548,Julia}
@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})
@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#L626,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L541,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1890,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1576,Julia}
@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#L636,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L550,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1931,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1601,Julia}
@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})
@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#L644,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L557,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1955,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1620,Julia}
@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#L650,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L562,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L1976,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1641,Julia}
@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#L656,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L567,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2000,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1665,Julia}
@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#L661,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L571,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2022,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1687,Julia}
@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#L669,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L575,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2046,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1714,Julia}
@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}, ...)
@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#L676,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L581,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2063,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1735,Julia}
@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})
@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#L683,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L587,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2088,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1749,Julia}
@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#L697,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L598,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2101,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1777,Julia}
@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#L705,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L605,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2133,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1793,Julia}
@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.

@table @asis
@item Input:
-
@item Output:
-
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L710,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L608,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2146,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1807,Julia}
@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#L716,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L612,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2159,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1824,Julia}
@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})
@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#L723,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L618,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2178,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1846,Julia}
@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#L729,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L623,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2202,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1871,Julia}
@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#L738,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L631,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2225,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1895,Julia}
@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#L19,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#L746,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L638,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2247,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1919,Julia}
@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#L755,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L646,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2273,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1939,Julia}
@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#L760,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L650,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2293,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1958,Julia}
@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#L769,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L658,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2312,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L1980,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/flatten2.py#L19,flatten2.py}, @url{@value{GITLAB-PREFIX}/examples/api/remesh_partial_move.py#L30,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#L787,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L675,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2338,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2019,Julia}
@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}, ...)
@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#L799,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L686,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2389,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2054,Julia}
@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#L813,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L699,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2427,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2091,Julia}
@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#L825,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L710,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2468,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2122,Julia}
@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#L832,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L716,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2495,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2140,Julia}
@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#L837,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L720,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2513,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2158,Julia}
@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#L845,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L727,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2531,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2184,Julia}
@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#L853,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L734,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2565,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2210,Julia}
@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#L866,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L746,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2587,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2240,Julia}
@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}, ...)
@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#L878,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L757,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2624,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2258,Julia}
@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/remove_elements.py#L28,remove_elements.py}, @url{@value{GITLAB-PREFIX}/examples/api/terrain.py#L66,terrain.py})
@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#L886,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L763,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2641,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2280,Julia}
@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#L904,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L780,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2664,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2315,Julia}
@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}, ...)
@end table

@item gmsh/model/mesh/getElement
Get the type and node tags of the element with tag @code{tag}, 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#L917,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L792,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2711,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2358,Julia}
@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#L932,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L805,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2752,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2399,Julia}
@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#L953,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L824,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2810,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2437,Julia}
@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#L967,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L837,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2847,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2469,Julia}
@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#L980,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L849,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2890,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2496,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x6.cpp#L38,x6.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/tri.py#L10,tri.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L33,x6.py}, @url{@value{GITLAB-PREFIX}/examples/api/poisson.py#L92,poisson.py})
@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#L990,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L858,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2918,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2524,Julia}
@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})
@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#L1001,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L868,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2946,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2554,Julia}
@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})
@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#L1020,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L886,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L2995,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2596,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L58,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/tri.py#L11,tri.py}, @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}, ...)
@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#L1030,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L895,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3038,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2622,Julia}
@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})
@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#L1036,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L900,C}
@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#L1058,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L921,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3060,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2658,Julia}
@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#L1076,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L938,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3103,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2691,Julia}
@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}, ...)
@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#L1091,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L952,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3141,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2720,Julia}
@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}, ...)
@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#L1110,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L970,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3173,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2753,Julia}
@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})
@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#L1132,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L991,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3215,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2799,Julia}
@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})
@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#L1145,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1003,C}
@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#L1168,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1025,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3271,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2841,Julia}
@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#L1196,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1052,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3317,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2894,Julia}
@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})
@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#L1214,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1069,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3377,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2930,Julia}
@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#L1224,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1078,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3416,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2955,Julia}
@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#L1232,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1085,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3442,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L2978,Julia}
@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#L1239,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1091,C}
@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#L1252,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1103,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3466,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3005,Julia}
@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})
@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#L1263,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1113,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3502,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3038,Julia}
@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})
@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#L1272,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1121,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3538,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3063,Julia}
@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})
@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#L1278,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1126,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3558,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3084,Julia}
@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})
@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#L1285,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1132,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3578,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3109,Julia}
@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})
@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#L1293,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1139,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3607,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3139,Julia}
@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})
@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#L1301,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1146,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3638,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3165,Julia}
@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#L1308,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1152,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3661,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3186,Julia}
@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#L1321,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1164,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3686,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3217,Julia}
@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#L1332,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1174,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3731,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3251,Julia}
@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#L1343,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1184,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3768,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3282,Julia}
@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#L1355,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1195,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3792,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3312,Julia}
@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#L1371,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1210,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3830,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3348,Julia}
@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#L1383,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1221,C}
@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#L1397,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1234,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3871,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3383,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/x7.cpp#L34,x7.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/tri.py#L12,tri.py}, @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})
@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#L1415,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1251,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3910,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3420,Julia}
@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})
@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#L1427,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1262,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3952,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3447,Julia}
@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#L1437,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1271,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L3984,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3473,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L115,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#L97,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}, ...)
@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#L1446,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1279,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4007,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3499,Julia}
@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#L1454,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1286,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4035,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3527,Julia}
@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#L1470,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1301,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4063,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3552,Julia}
@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})
@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#L1475,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1305,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4093,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3569,Julia}
@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#L1484,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1311,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4107,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3593,Julia}
@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})
@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#L1498,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1324,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4134,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3618,Julia}
@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})
@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#L1507,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1332,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4163,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3639,Julia}
@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})
@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#L1521,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1344,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4186,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3666,Julia}
@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})
@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#L1531,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1353,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4216,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3691,Julia}
@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}, ...)
@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#L1539,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1360,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4241,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3712,Julia}
@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})
@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#L1550,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1370,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4264,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3735,Julia}
@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#L1560,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1378,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4290,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3757,Julia}
@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})
@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#L1569,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1386,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4314,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3779,Julia}
@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#L1578,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1394,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4338,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3800,Julia}
@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})
@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#L1587,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1402,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4361,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3821,Julia}
@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#L1594,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1408,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4382,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3840,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/terrain_bspline.py#L51,terrain_bspline.py})
@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#L1607,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1420,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4403,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3870,Julia}
@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})
@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#L1617,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1429,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4435,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3890,Julia}
@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#L1624,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1435,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4458,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3915,Julia}
@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#L1632,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1442,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4485,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3940,Julia}
@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#L1645,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1454,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4509,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3969,Julia}
@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#L1656,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1464,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4547,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L3997,Julia}
@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#L1666,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1473,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4572,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4019,Julia}
@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#L1679,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1485,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4598,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4046,Julia}
@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})
@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#L1688,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1493,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4632,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4069,Julia}
@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#L1699,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1503,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4660,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4101,Julia}
@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#L1715,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1518,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4705,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4146,Julia}
@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#L1730,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1532,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4765,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4180,Julia}
@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#L1737,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1537,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4779,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4203,Julia}
@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#L1745,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1543,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4806,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4227,Julia}
@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#L1752,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1549,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4826,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4249,Julia}
@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#L1758,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1554,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4847,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4271,Julia}
@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#L1764,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1559,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4868,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4290,Julia}
@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#L1770,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1564,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4889,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4311,Julia}
@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#L1783,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1576,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4914,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4343,Julia}
@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})
@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#L1796,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1588,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4947,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4365,Julia}
@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_stl.py#L26,remesh_stl.py}, ...)
@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#L1806,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1597,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4970,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4390,Julia}
@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#L1822,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1612,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L4995,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4420,Julia}
@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})
@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#L1830,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1619,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5032,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4435,Julia}
@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#L1837,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1624,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5046,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4457,Julia}
@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#L1844,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1630,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5070,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4482,Julia}
@end table

@item gmsh/model/mesh/triangulate
Triangulate the points given in the @code{coord} vector as pairs of u, v coordinates, and return the node tags (with numbering starting at 1) of the resulting triangles in @code{tri}.

@table @asis
@item Input:
@code{coord} (vector of doubles)
@item Output:
@code{tri} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1851,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1636,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5094,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4508,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/raw_triangulation.py#L14,raw_triangulation.py})
@end table

@item gmsh/model/mesh/tetrahedralize
Tetrahedralize the points given in the @code{coord} vector as x, y, z coordinates, concatenated, and return the node tags (with numbering starting at 1) of the resulting tetrahedra in @code{tetra}.

@table @asis
@item Input:
@code{coord} (vector of doubles)
@item Output:
@code{tetra} (vector of sizes)
@item Return:
-
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L1859,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1643,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5120,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4533,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/raw_tetrahedralization.py#L16,raw_tetrahedralization.py})
@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#L1871,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1652,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5152,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4569,Julia}
@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}, ...)
@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#L1877,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1657,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5178,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4586,Julia}
@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#L1882,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1661,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5195,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4605,Julia}
@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#L1887,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1665,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5216,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4628,Julia}
@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#L1893,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1670,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5240,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4650,Julia}
@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}, ...)
@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#L1900,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1676,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5262,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4672,Julia}
@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#L1907,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1682,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5288,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4693,Julia}
@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})
@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#L1914,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1688,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5310,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4715,Julia}
@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#L1922,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1694,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5336,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4737,Julia}
@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})
@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#L1929,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1700,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5359,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4759,Julia}
@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#L1936,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1706,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5385,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4780,Julia}
@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}, ...)
@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#L1941,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1710,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5403,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4798,Julia}
@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#L1957,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1719,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5427,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4840,Julia}
@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}, ...)
@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#L1969,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1730,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5461,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4865,Julia}
@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}, ...)
@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#L1981,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1741,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5489,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4895,Julia}
@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})
@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#L1997,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1756,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5527,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4927,Julia}
@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#L2013,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1771,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5567,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4951,Julia}
@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})
@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#L2023,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1780,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5595,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4975,Julia}
@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#L2031,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1787,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5623,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L4998,Julia}
@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#L2041,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1795,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5649,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5022,Julia}
@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#L2051,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1804,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5676,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5048,Julia}
@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#L2062,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1814,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5706,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5073,Julia}
@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#L2075,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1826,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5736,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5101,Julia}
@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}, ...)
@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#L2083,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1833,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5768,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5123,Julia}
@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#L2093,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1842,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5794,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5151,Julia}
@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}, ...)
@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#L2103,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1851,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5822,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5177,Julia}
@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})
@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#L2113,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1859,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5852,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5200,Julia}
@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}, ...)
@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#L2123,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1868,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5878,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5225,Julia}
@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}, ...)
@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 "Parametric" (where @code{strings} should contains three expression evaluating to the x, y and z coordinates. 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#L2135,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1879,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5906,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5253,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/ocean.py#L9,ocean.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#L2147,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1890,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5941,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5282,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/ocean.py#L11,ocean.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#L2163,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1905,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L5976,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5315,Julia}
@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})
@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#L2183,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1924,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6020,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5359,Julia}
@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})
@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#L2208,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1948,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6074,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5407,Julia}
@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})
@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#L2236,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1975,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6135,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5447,Julia}
@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#L2248,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1986,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6181,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5475,Julia}
@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})
@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#L2259,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L1996,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6206,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5503,Julia}
@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})
@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#L2274,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2010,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6241,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5531,Julia}
@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#L2287,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2022,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6274,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5556,Julia}
@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 synonym for @code{mirror}, which will be deprecated in a future release.)

@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#L2299,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2033,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6302,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5582,Julia}
@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#L2310,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2042,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6331,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5605,Julia}
@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})
@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#L2319,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2050,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6356,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5632,Julia}
@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})
@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#L2326,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2056,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6379,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5649,Julia}
@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 lines, 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#L2334,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2062,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6394,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5674,Julia}
@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#L2342,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2069,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6424,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5698,Julia}
@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#L2348,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2074,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6446,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5718,Julia}
@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#L2357,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2082,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6467,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5744,Julia}
@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})
@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#L2367,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2091,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6498,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5763,Julia}
@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#L2377,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2100,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6519,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5784,Julia}
@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}, ...)
@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#L2386,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2105,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6543,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5813,Julia}
@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})
@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#L2396,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2114,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6566,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5839,Julia}
@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})
@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#L2411,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2127,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6594,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5865,Julia}
@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})
@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#L2420,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2135,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6623,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5886,Julia}
@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#L2430,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2144,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6646,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5909,Julia}
@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})
@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#L2439,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2152,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6672,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5931,Julia}
@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#L2450,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2162,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6696,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5955,Julia}
@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#L2459,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2170,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6722,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5976,Julia}
@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#L2468,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2178,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6746,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L5998,Julia}
@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#L2487,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2189,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6776,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6040,Julia}
@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}, ...)
@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#L2499,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2200,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6810,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6065,Julia}
@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#L2511,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2211,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6838,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6093,Julia}
@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#L2526,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2225,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6872,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6127,Julia}
@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})
@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#L2544,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2242,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6917,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6156,Julia}
@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#L2560,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2257,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6951,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6192,Julia}
@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#L2582,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2278,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L6999,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6222,Julia}
@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}, ...)
@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#L2594,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2289,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7034,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6252,Julia}
@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})
@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#L2606,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2300,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7074,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6275,Julia}
@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#L2616,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2309,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7100,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6301,Julia}
@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})
@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#L2631,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2323,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7130,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6329,Julia}
@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})
@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#L2641,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2332,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7162,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6359,Julia}
@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/tri.py#L5,tri.py}, @url{@value{GITLAB-PREFIX}/tutorials/python/x6.py#L19,x6.py}, ...)
@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#L2658,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2348,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7199,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6391,Julia}
@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})
@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#L2674,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2363,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7242,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6416,Julia}
@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})
@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#L2698,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2385,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7270,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6464,Julia}
@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#L2721,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2407,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7333,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6492,Julia}
@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#L2734,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2419,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7364,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6520,Julia}
@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#L2751,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2435,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7395,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6561,Julia}
@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})
@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#L2775,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2458,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7455,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6592,Julia}
@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#L2790,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2472,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7494,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6620,Julia}
@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#L2803,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2483,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7528,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6646,Julia}
@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#L2814,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2493,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7558,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6671,Julia}
@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#L2825,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2503,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7586,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6703,Julia}
@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}, ...)
@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#L2840,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2517,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7626,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6732,Julia}
@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}, ...)
@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#L2856,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2532,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7662,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6765,Julia}
@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})
@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#L2874,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2549,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7704,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6799,Julia}
@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})
@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#L2894,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2568,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7748,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6832,Julia}
@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#L2912,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2585,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7792,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6863,Julia}
@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#L2935,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2607,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7833,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6901,Julia}
@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})
@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#L2953,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2624,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7883,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6933,Julia}
@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#L2968,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2638,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7919,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L6970,Julia}
@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#L2989,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2658,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L7963,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7014,Julia}
@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#L3011,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2679,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8018,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7048,Julia}
@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})
@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#L3024,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2691,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8053,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7083,Julia}
@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})
@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#L3040,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2706,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8090,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7117,Julia}
@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#L3052,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2717,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8132,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7145,Julia}
@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.

@table @asis
@item Input:
@code{edgeTag1} (integer), @code{edgeTag2} (integer), @code{radius} (double), @code{tag = -1} (integer)
@item Output:
-
@item Return:
integer
@item Language-specific definition:
@url{@value{GITLAB-PREFIX}/api/gmsh.h#L3062,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2726,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8163,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7173,Julia}
@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#L3073,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2736,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8192,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7200,Julia}
@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#L3084,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2746,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8224,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7224,Julia}
@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 coordinate of the points as @code{x1}, @code{y1}, @code{z1} and @code{x2}, @code{y2}, @code{z2}. 

@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#L3094,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2755,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8252,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7261,Julia}
@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}. 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#L3114,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2774,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8310,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7299,Julia}
@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})
@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}. 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#L3130,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2789,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8353,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7348,Julia}
@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})
@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}. 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#L3146,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#L7397,Julia}
@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})
@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}. 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#L3166,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2823,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8439,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7449,Julia}
@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}, ...)
@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#L3178,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2834,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8486,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7489,Julia}
@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})
@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#L3189,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2844,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8511,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7517,Julia}
@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/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}, @url{@value{GITLAB-PREFIX}/examples/api/pipe.py#L26,pipe.py})
@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#L3204,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2858,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8546,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7545,Julia}
@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#L3217,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2870,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8579,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7570,Julia}
@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#L3229,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2881,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8607,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7595,Julia}
@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#L3241,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2892,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8636,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7618,Julia}
@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#L3248,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2898,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8661,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7642,Julia}
@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})
@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#L3257,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2906,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8686,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7669,Julia}
@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})
@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#L3265,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2913,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8709,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7687,Julia}
@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#L3273,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2919,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8725,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7716,Julia}
@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#L3285,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2930,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8765,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7740,Julia}
@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#L3295,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2939,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8784,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7770,Julia}
@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})
@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#L3311,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2954,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8817,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7803,Julia}
@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#L3320,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2962,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8851,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7830,Julia}
@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})
@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#L3329,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2970,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8877,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7863,Julia}
@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#L3342,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2982,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8916,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7895,Julia}
@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})
@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#L3356,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L2995,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8964,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7925,Julia}
@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#L3365,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3003,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L8995,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7958,Julia}
@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#L3375,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3011,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9026,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L7991,Julia}
@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#L3383,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3018,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9054,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8017,Julia}
@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#L3393,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3027,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9090,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8043,Julia}
@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#L3401,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3034,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9117,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8067,Julia}
@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#L3407,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3039,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9139,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8087,Julia}
@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#L3418,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3049,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9160,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8106,Julia}
@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}, ...)
@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#L3427,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3054,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9184,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8135,Julia}
@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#L3443,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3061,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9213,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8175,Julia}
@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}, ...)
@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#L3449,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3066,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9237,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8192,Julia}
@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#L3456,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3072,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9254,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8213,Julia}
@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#L3461,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3076,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9277,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8233,Julia}
@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})
@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#L3477,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3091,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9299,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8273,Julia}
@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#L3494,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3107,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9346,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8304,Julia}
@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})
@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#L3510,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3122,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9386,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8332,Julia}
@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#L3524,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3135,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9432,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8374,Julia}
@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#L3544,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3154,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9478,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8414,Julia}
@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}, ...)
@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#L3555,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3164,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9512,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8441,Julia}
@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#L3575,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3184,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9550,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8486,Julia}
@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})
@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#L3585,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3193,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9589,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8512,Julia}
@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#L3604,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3211,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9626,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8557,Julia}
@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})
@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#L3619,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3225,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9672,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8582,Julia}
@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#L3629,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3234,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9700,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8606,Julia}
@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#L3649,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3253,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9726,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8649,Julia}
@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})
@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#L3668,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3271,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9791,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8673,Julia}
@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}, ...)
@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#L3676,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3278,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9813,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8693,Julia}
@end table

@end ftable

@node Namespace gmsh/view/option, Namespace gmsh/plugin, 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#L3686,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3285,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9842,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8722,Julia}
@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}, ...)
@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#L3694,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3291,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9865,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8744,Julia}
@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})
@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#L3701,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3297,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9891,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8765,Julia}
@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})
@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#L3708,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3303,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9913,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8787,Julia}
@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#L3717,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3311,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9939,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8814,Julia}
@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#L3728,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3321,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L9969,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8840,Julia}
@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#L3739,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3331,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10009,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8863,Julia}
@end table

@end ftable

@node Namespace gmsh/plugin, Namespace gmsh/graphics, Namespace gmsh/view/option, 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#L3754,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3339,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10035,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8898,Julia}
@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}, ...)
@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#L3764,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3348,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10060,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8921,Julia}
@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})
@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#L3774,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3357,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10085,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8944,Julia}
@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}, ...)
@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#L3783,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3361,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10114,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8969,Julia}
@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})
@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#L3793,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3365,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10133,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L8994,Julia}
@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}, ...)
@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#L3799,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3369,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10147,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9008,Julia}
@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#L3806,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3374,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10161,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9027,Julia}
@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}, ...)
@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#L3814,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3381,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10180,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9044,Julia}
@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#L3821,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3386,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10196,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9062,Julia}
@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#L3826,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3390,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10215,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9076,Julia}
@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#L3831,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3393,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10228,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9090,Julia}
@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. 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#L3838,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3398,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10241,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9106,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t1.cpp#L150,t1.cpp}, @url{@value{GITLAB-PREFIX}/tutorials/c++/t2.cpp#L168,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#L161,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}, ...)
@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#L3844,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3402,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10256,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9122,Julia}
@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}, ...)
@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#L3851,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3407,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10274,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9145,Julia}
@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#L3857,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3412,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10302,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9169,Julia}
@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#L3862,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3416,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10326,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9192,Julia}
@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#L3869,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3422,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10350,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9215,Julia}
@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#L3877,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3429,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10372,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9235,Julia}
@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#L3883,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3434,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10392,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9255,Julia}
@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#L3889,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3439,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10413,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9274,Julia}
@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#L3895,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3444,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10433,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9292,Julia}
@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#L3900,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3448,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10451,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9310,Julia}
@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#L3910,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3453,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10475,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9343,Julia}
@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#L3917,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3459,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10500,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9367,Julia}
@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#L3924,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3465,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10522,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9387,Julia}
@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#L3931,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3471,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10544,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9409,Julia}
@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#L3938,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3477,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10569,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9434,Julia}
@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#L3945,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3483,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10594,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9457,Julia}
@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#L3950,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3487,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10612,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9474,Julia}
@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#L3959,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3491,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10635,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9503,Julia}
@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}, ...)
@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#L3966,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3497,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10654,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9525,Julia}
@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})
@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#L3974,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3504,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10680,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9548,Julia}
@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#L3982,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3511,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10705,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9572,Julia}
@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})
@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#L3990,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3518,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10728,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9592,Julia}
@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}, ...)
@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#L3997,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3524,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10751,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9614,Julia}
@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}, ...)
@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#L4004,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3530,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10776,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9639,Julia}
@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}, ...)
@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#L4011,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3536,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10801,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9664,Julia}
@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#L4017,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3541,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10823,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9684,Julia}
@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#L4023,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3546,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10844,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9702,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/onelab_test.py#L44,onelab_test.py})
@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#L4030,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3552,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10861,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9722,Julia}
@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#L4040,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3557,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10888,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9751,Julia}
@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})
@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#L4046,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3562,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10907,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9765,Julia}
@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})
@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#L4051,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3565,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10920,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9784,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L137,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L118,t16.py})
@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#L4056,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3569,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10941,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9802,Julia}
@item Examples:
C++ (@url{@value{GITLAB-PREFIX}/tutorials/c++/t16.cpp#L139,t16.cpp}), Python (@url{@value{GITLAB-PREFIX}/tutorials/python/t16.py#L120,t16.py})
@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#L4061,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3572,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10954,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9818,Julia}
@item Examples:
Python (@url{@value{GITLAB-PREFIX}/examples/api/import_perf.py#L8,import_perf.py})
@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#L4066,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3575,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10972,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9835,Julia}
@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#L4071,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3578,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L10990,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9852,Julia}
@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#L4076,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3581,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11008,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9869,Julia}
@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#L4081,C++}, @url{@value{GITLAB-PREFIX}/api/gmshc.h#L3584,C}, @url{@value{GITLAB-PREFIX}/api/gmsh.py#L11026,Python}, @url{@value{GITLAB-PREFIX}/api/gmsh.jl#L9889,Julia}
@end table

@end ftable

