Skip to content

Commit

Permalink
Merge branch 'main' into maint/add-numpydoc-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Dec 24, 2023
2 parents ee2028e + aaa1704 commit fa5a62c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ To visualize the model we can use PyVista.

.. code-block:: python
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(tess, show_edges=True)
>>> plotter = pv.Plotter(off_screen=True)
>>> _ = plotter.add_mesh(tess, show_edges=True, line_width=4, color="white")
>>> _ = plotter.add_mesh(squar, show_edges=True, line_width=4, color="blue")
>>> _ = plotter.add_points(
... squar.points, style="points", point_size=20, color="blue"
... )
>>> plotter.show(cpos="xy")
.. image:: https://github.com/pyvista/pyvista-gmsh/raw/main/frontal_delaunay_2d_01.png
Binary file modified frontal_delaunay_2d_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/pvgmsh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def frontal_delaunay_2d(edge_source, mesh_size=1e-2):
N Arrays: 0
>>> plotter = pv.Plotter(off_screen=True)
>>> _ = plotter.add_mesh(tess, show_edges=True)
>>> _ = plotter.add_mesh(tess, show_edges=True, line_width=4, color="white")
>>> _ = plotter.add_mesh(squar, show_edges=True, line_width=4, color="blue")
>>> _ = plotter.add_points(
... squar.points, style="points", point_size=20, color="blue"
... )
>>> plotter.show(cpos="xy", screenshot="frontal_delaunay_2d_01.png")
"""
gmsh.initialize()
Expand Down

0 comments on commit fa5a62c

Please sign in to comment.