Skip to content
Snippets Groups Projects
Select Git revision
  • 8458fc5980f7eadc518b14a43f51df5bb4839e63
  • master default protected
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • bl
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • convert_fdivs
  • tmp_jcjc24
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

openglWindow.h

Blame
  • gmsh.jl 345.45 KiB
    # Gmsh - Copyright (C) 1997-2024 C. Geuzaine, J.-F. Remacle
    #
    # See the LICENSE.txt file in the Gmsh root directory for license information.
    # Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    # This file defines the Gmsh Julia API (v4.13.0).
    #
    # Do not edit this file directly: it is automatically generated by `api/gen.py'.
    #
    # By design, the Gmsh Julia API is purely functional, and only uses elementary
    # Julia types. See `tutorials/julia' and `examples/api' for tutorials and
    # examples.
    
    """
        module gmsh
    
    Gmsh is an automatic three-dimensional finite element mesh generator with a
    built-in CAD engine and post-processor. Its design goal is to provide a fast,
    light and user-friendly meshing tool with parametric input and flexible
    visualization capabilities. Gmsh is built around four modules (geometry, mesh,
    solver and post-processing), which can be controlled with the graphical user
    interface, from the command line, using text files written in Gmsh's own
    scripting language (.geo files), or through the C++, C, Python, Julia and
    Fortran application programming interface (API).
    
    This module defines the Gmsh Julia API.
    """
    module gmsh
    
    const GMSH_API_VERSION = "4.13.0"
    const GMSH_API_VERSION_MAJOR = 4
    const GMSH_API_VERSION_MINOR = 13
    const GMSH_API_VERSION_PATCH = 0
    const libdir = dirname(@__FILE__)
    const libname = Sys.iswindows() ? "gmsh-4.13.dll" : "libgmsh"
    import Libdl
    const lib = Libdl.find_library([libname], [libdir])
    
    """
        gmsh.initialize(argv = Vector{String}(), readConfigFiles = true, run = false)
    
    Initialize the Gmsh API. This must be called before any call to the other
    functions in the API. If `argc` and `argv` (or just `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 `readConfigFiles` is set, read system Gmsh configuration
    files (gmshrc and gmsh-options). If `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 `run` is not set, initializing the API sets the options
    "General.AbortOnError" to 2 and "General.Terminal" to 1.
    
    Types:
     - `argv`: command line arguments
     - `readConfigFiles`: boolean
     - `run`: boolean
    """
    function initialize(argv = Vector{String}(), readConfigFiles = true, run = false)
        ierr = Ref{Cint}()
        ccall((:gmshInitialize, lib), Cvoid,
              (Cint, Ptr{Ptr{Cchar}}, Cint, Cint, Ptr{Cint}),
              length(argv), argv, readConfigFiles, run, ierr)
        ierr[] != 0 && error(gmsh.logger.getLastError())
        return nothing
    end
    
    """
        gmsh.isInitialized()
    
    Return 1 if the Gmsh API is initialized, and 0 if not.
    
    Return an integer.