Skip to content

Commit

Permalink
Define option number as variable (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tkoyama010 and pre-commit-ci[bot] authored Dec 29, 2023
1 parent 30aa990 commit 7843d20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pvgmsh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

from pvgmsh._version import __version__ # noqa: F401

FRONTAL_DELAUNAY_2D = 6


def frontal_delaunay_2d(
edge_source: pv.PolyData,
Expand Down Expand Up @@ -85,7 +87,7 @@ def frontal_delaunay_2d(
>>> plotter.show(cpos="xy", screenshot="frontal_delaunay_2d_01.png")
"""
gmsh.initialize()
gmsh.option.set_number("Mesh.Algorithm", 6)
gmsh.option.set_number("Mesh.Algorithm", FRONTAL_DELAUNAY_2D)

if target_size is None:
target_size = np.max(
Expand Down

0 comments on commit 7843d20

Please sign in to comment.