Generates icosphere meshes of varying levels of complexity – implementation sourced from this article.
mesh = icosphere(subdivisions)
Creates a new icosphere mesh object. You'll want to keep
the range of 0 and 5 or it starts to get really costly. The mesh object has
the following properties:
cells: an indexed list of each triangle's positions.
positions: a list of positions for each vertex.
- Creating an icosphere mesh in code
MIT. See LICENSE.md for details.