Skip to content

Commit

Permalink
Merge branch 'main' into doc/fix-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Sep 3, 2024
2 parents d8a64de + 15187da commit 1a39f47
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
8 changes: 4 additions & 4 deletions examples/cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.cell_size = 0.2
alg.mesh.plot(show_edges=True, color="white", line_width=2)
4 changes: 2 additions & 2 deletions examples/polygon_with_hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1a39f47

Please sign in to comment.