A simple m file for the triangle mesh subdivision using linear interpolation. The zip file includes four examples of subdivision.
See also the URL:
Excellent function.I use it very frequently . I also created polyhedron projections using this function .
Nice piece of code. Although runs into memory issues for meshes that have more than 4E3 vertices. To avoid these problems change
edgeVertex= zeros(nVertices, nVertices); (on line 17)
edgeVertex= sparse(nVertices, nVertices);
Thanks for your submission Jesus.