Skip to content

Commit f2fb83c

Browse files
authored
Update icosahedron.py
1 parent 160c681 commit f2fb83c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

examples/icosahedron.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
"""scikit-gmsh package for 3D mesh generation test."""
1+
r"""
2+
Icosahedron geometry example
3+
----------------------------
4+
5+
Icosahedron geometry example.
6+
7+
"""
8+
9+
# sphinx_gallery_thumbnail_number = 2 # noqa:ERA001
210

311
from __future__ import annotations
412

@@ -9,5 +17,9 @@
917
edge_source = pv.Icosahedron()
1018
edge_source.merge(pv.PolyData(edge_source.points), merge_points=True, inplace=True)
1119
edge_source.plot(show_edges=True)
20+
21+
# %%
22+
# Generate the mesh.
23+
1224
delaunay_3d = sg.Delaunay3D(edge_source)
1325
delaunay_3d.mesh.shrink(0.9).plot(show_edges=True)

0 commit comments

Comments
 (0)