How to fill the holes in a triangle mesh?
이전 댓글 표시
I am doing a project now about the Pinna and sound collection.I used photoscanner to get pictures of human pinnas and made them into a obj file, Now I am able to create the pointcloud and the triangular mesh. Because the pictures are not fully covering the pinna, some places exist holes and gaps. Right now I have the vertices information as well as the faces information in a structure.I am searching for some algorithm to automatically fill the holes. I found some articles about that but don't know how to apply it into Matlab. Can someone tell me how to use Matlab function to operate this? I found a package of iso2mesh files but don't know how to use them and some files run with error with my Matlab. Thanks for any help.
댓글 수: 3
Sven
2011년 12월 13일
This is a reasonable question, but the term "fill holes" is a little general. Also, there are a number of different types of filling of mesh holes (planar, normal-preserving).
The first step will undoubtedly be to *find* mesh holes. Can you do that? Can you post code (maybe upload a small mesh structure with holes in it somewhere) that actually finds holes first? At least if we have a common starting point we can get towards an answer.
YE HUICHAO
2012년 1월 10일
Muhammed Talu
2021년 1월 5일
Dear Huichao, Could you solve the problem?
Look at the following code. I removed some faces. How can I fill the removed faces again?
vol = zeros(20,20,20); % Empty voxel volume
vol(8:12,8:12,5:15) = 1; % Turn some voxels on
fv = isosurface(vol, 0.99);
% REMOVE some face
fv.faces(30:31,:) = []; % Remove a face!
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!