swplot.icomesh#
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#
nMeshNumber of subdivisions. Default value is 0, when the function returns the icosahedron.
Output Arguments#
TRTriangulation class object for plotting with trimesh.