Skip to content

API Reference

GmshSTL.GmshSTL_dir Method
julia
GmshSTL_dir()

Return the root directory of the GmshSTL.jl package.

source
GmshSTL.gmsh_mesh_stl Method
julia
gmsh_mesh_stl(F, V, algorithm3d, min_length, max_length,
              optimize_netgen, quality, msh_version,
              angle_tol, verbosity, output_path)

Create a 3D volumetric mesh from a surface mesh (F, V) using Gmsh and save it to output_path.

Arguments

  • F: face connectivity, triangles indexing into V

  • V: vertex coordinates, points in 3D

  • algorithm3d: Gmsh 3D meshing algorithm:

    • 1: Delaunay

    • 4: Frontal

    • 7: MMG3D

  • min_length: minimum characteristic mesh size

  • max_length: maximum characteristic mesh size

  • optimize_netgen: enable Netgen optimization:

    • 0: off

    • 1: on

  • quality: Gmsh mesh quality metric type, usually 2

  • msh_version: output .msh version, for example 2.2 or 4.1

  • angle_tol: tolerance for detecting overlapping facets

  • verbosity: Gmsh verbosity level

  • output_path: path to save the generated mesh file

Notes

  • (F, V) must define a closed watertight surface.

  • The surface is internally written to a temporary STL file.

  • A tetrahedral 3D mesh is generated inside the enclosed volume.

source