Code covered by the BSD License
4.5
by Jesús P. Mena-Chalco
08 Aug 2009
A simple m file for the triangle mesh subdivision using linear interpolation.
| Watch this File
A simple m file for the triangle mesh subdivision using linear interpolation. The zip file includes four examples of subdivision.
See also the URL: http://www.mathworks.com.au/matlabcentral/fileexchange/24942
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)
to
edgeVertex= sparse(nVertices, nVertices);
Thanks for your submission Jesus.
Excellent function.I use it very frequently . I also created polyhedron projections using this function .
Contact us at files@mathworks.com