Skip to content

Commit

Permalink
Revert "Update README.md to fix the layout of the figure" (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 committed Jan 31, 2024
1 parent e993c6f commit 3d7a800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ mesh = pm.frontal_delaunay_2d(edge_source, target_sizes=2.0)

To visualize the model we can use PyVista.

[<img src="https://raw.githubusercontent.com/pyvista/pvgmsh/main/docs/_static/frontal_delaunay_2d_01.png" align="right" width="500">](https://github.com/pyvista/pvgmsh/main/docs/_static/frontal_delaunay_2d_01.png)

```python
plotter = pv.Plotter()
_ = plotter.add_mesh(
Expand All @@ -90,15 +88,15 @@ _ = plotter.add_legend(
plotter.show(cpos="xy")
```

![2D mesh](/docs/_static/frontal_delaunay_2d_01.png)

We can also generate a 3D mesh.

```python
edge_source = pv.Cube()
mesh = pm.delaunay_3d(edge_source, target_sizes=0.4)
```

[<img src="https://raw.githubusercontent.com/pyvista/pvgmsh/main/docs/_static/delaunay_3d_01.png" align="right" width="500">](https://github.com/pyvista/pvgmsh/main/docs/_static/delaunay_3d_01.png)

```python
plotter = pv.Plotter()
_ = plotter.add_mesh(
Expand Down Expand Up @@ -127,6 +125,8 @@ _ = plotter.add_axes(
plotter.show()
```

![3D mesh](/docs/_static/delaunay_3d_01.png)

## Contributions

[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-2.1-4baaaa.svg)](https://github.com/pyvista/pvgmsh/blob/main/CODE_OF_CONDUCT.md)
Expand Down

0 comments on commit 3d7a800

Please sign in to comment.