### Syntax

TR = swplot.icomesh(nMesh)

### Description

TR = swplot.icomesh(nMesh) outputs a triangulation that is generated by subdividing icosahedron faces. The triangulation will contain $$20\cdot 4^n$$ (where $$n=n_{mesh}$$) triangular faces. The output can be plotted using the trimesh function.

### Examples

This example shows how to create and plot the icosahedron.

TR = swplot.icomesh
trimesh(TR)


### Input Arguments

nMesh
Number of subdivisions. Default value is 0, when the function returns the icosahedron.

### Output Arguments

TR
Triangulation class object for plotting with trimesh.