pyacs.lib.icosahedron.subdivide
Subdivide icosahedron faces and push vertices to unit sphere.
- pyacs.lib.icosahedron.subdivide.subdivide(verts, faces)[source]
Subdivide each triangle into four triangles, pushing verts to the unit sphere.
- Parameters:
verts (list) – List of vertices (modified in place).
faces (list) – List of face index tuples (modified in place).
- Returns:
verts (list) – Updated vertices.
faces (list) – Updated faces.