Icosahedron#
- Icosahedron(
- radius: float = 1.0,
- center: VectorLike[float] = (0.0, 0.0, 0.0),
Create an icosahedron of a given size.
An icosahedron is composed of twenty congruent equilateral triangles.
- Parameters:
- Returns:
pyvista.PolyDataMesh for the icosahedron. Cell scalars are defined that assign integer labels to each face (with array name
"FaceIndex").
Examples#
Download Python source code | Download Jupyter notebook
Create and plot an icosahedron.
>>> import pyvista as pv
>>> tetra = pv.Icosahedron()
>>> tetra.plot(categories=True)
See Platonic Solids for more examples using this filter.
Used In#
Docstring Examples
Icosphere(1 use)