Patch Slim (patchslim.m)

버전 (1.42 KB) 작성자: Francis Esmonde-White
Remove duplicate vertices in surface meshes.
다운로드 수: 2.5K
업데이트 날짜: 2011/1/11

라이선스 보기

Patchslim is used when loading matrices with stlread to reduce the vertex matrix size.

Surface meshes often have duplicate vertices listed. This function parses the list of points and finds all vertices with duplicate entries in the 'v' (vertices) matrix. These points are removed and the 'f' (faces) matrix indices are set accordingly.

This reduces the size of patch matrices, often by quite a bit. This program can take quite a while to run on very large meshes. I use this to shrink surface mesh sizes after loading them in with 'stlread.m', at .

USAGE: [v, f]=patchslim(v, f)

For more info, see:

인용 양식

Francis Esmonde-White (2024). Patch Slim (patchslim.m) (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
Help CenterMATLAB Answers에서 Preprocessing Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보

Patchslim now uses the built-in command unique() and is approximately 30x faster, thanks to John D'Errico for the excellent suggestion! I often use unique(), but hadn't realized that it also has a mode to operate on rows.

I changed the H1 line so that it is more descriptive.