From 55946a02dbe5a527df23c85e0229fc341e7b0640 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Sat, 31 Aug 2024 20:41:40 +0900 Subject: [PATCH 1/4] Change the color and line width of the mesh (#380) --- examples/cylinder.py | 6 +++--- examples/polygon_with_hole.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cylinder.py b/examples/cylinder.py index 662101c7..00e313b6 100644 --- a/examples/cylinder.py +++ b/examples/cylinder.py @@ -16,16 +16,16 @@ edge_source = pv.Cylinder(resolution=16) edge_source.merge(pv.PolyData(edge_source.points), merge_points=True, inplace=True) -edge_source.plot(show_edges=True) +edge_source.plot(show_edges=True, color="white", line_width=2) # %% # Generate the mesh. alg = sg.Delaunay3D(edge_source) -alg.mesh.plot(show_edges=True) +alg.mesh.plot(show_edges=True, color="white", line_width=2) # %% # Change the cell size of the mesh. alg.cell_size = 0.5 -alg.mesh.plot(show_edges=True) +alg.mesh.plot(show_edges=True, color="white", line_width=2) diff --git a/examples/polygon_with_hole.py b/examples/polygon_with_hole.py index b06cadb6..4a5e8cdd 100644 --- a/examples/polygon_with_hole.py +++ b/examples/polygon_with_hole.py @@ -19,10 +19,10 @@ # %% # Generate the mesh. -alg.mesh.plot(show_edges=True, cpos="xy") +alg.mesh.plot(show_edges=True, cpos="xy", color="white", line_width=2) # %% # Change the cell size of the mesh. alg.cell_size = 2.0 -alg.mesh.plot(show_edges=True, cpos="xy") +alg.mesh.plot(show_edges=True, cpos="xy", color="white", line_width=2) From 83fe7735d587b75156586670520db5e12075e772 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Sun, 1 Sep 2024 17:09:47 +0900 Subject: [PATCH 2/4] Change the mesh size for cylindrical geometry (#381) --- examples/cylinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cylinder.py b/examples/cylinder.py index 00e313b6..20c43402 100644 --- a/examples/cylinder.py +++ b/examples/cylinder.py @@ -27,5 +27,5 @@ # %% # Change the cell size of the mesh. -alg.cell_size = 0.5 +alg.cell_size = 0.2 alg.mesh.plot(show_edges=True, color="white", line_width=2) From 293444fa9b78b59e91a7164447ba744895ec7266 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Sun, 1 Sep 2024 23:39:45 +0900 Subject: [PATCH 3/4] Add a link of PyPI package of Gmsh in README.md (#382) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 84f9a7e3..25999810 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,10 @@ [![GitHub Repo stars](https://img.shields.io/github/stars/pyvista/scikit-gmsh)](https://github.com/pyvista/scikit-gmsh/stargazers) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) -The `scikit-gmsh` package provides a simple interface to the `gmsh` library. +The `scikit-gmsh` package provides a simple interface to: + +- Christophe Geuzaine and Jean-François Remacle's [Gmsh](https://pypi.org/project/gmsh/) + The library has following main objectives: 1. Provide an intuitive, object-oriented API for mesh creation like [scipy.spatial.Delaunay class](https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.Delaunay.html). From 15187daf1bdea14fc0cf47d248f0d8b79c55a6a4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 06:57:15 +0900 Subject: [PATCH 4/4] chore: update pre-commit hooks (#384) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1291148..6ea5a21a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.2 + rev: v0.6.3 hooks: - id: ruff args: ["--fix", "--show-fixes"]