File Exchange

image thumbnail

Loop Subdivision

version 1.1.0.0 (206 KB) by Jesús P. Mena-Chalco
A simple m file for the triangle mesh subdivision using the Loop's scheme.

4 Downloads

Updated 07 Aug 2009

View License

A simple m file for the triangle mesh subdivision using the Loop's scheme. The zip file includes four examples of subdivision.

Cite As

Jesús P. Mena-Chalco (2020). Loop Subdivision (https://www.mathworks.com/matlabcentral/fileexchange/24942-loop-subdivision), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

zhenyu

it is very useful

Stéphane

Attempted to access edgeVertice(1,4,1); index out of bounds because size(edgeVertice)=[3,3,3].(line116)

Dun Kirk

Update:
After adding a few tricks, it takes only 0.861 seconds from 223 triangles to 228352 triangles (5x subdivisions).

Dun Kirk

Making use of the Matlab embedded data structure: TriRep could make this a lot faster. This function took 1357.56 seconds subdividing 122 triangles to 124928 triangles (5 times subdivision). I did it in 2.2 seconds with TriRep.

Updates

1.1.0.0

The boundary cases are considered.

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux