How to fill the holes in a triangle mesh?

14 次查看(过去 30 天)
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 个评论
YE HUICHAO
YE HUICHAO 2012-1-10
@Seven I have tried the function in file exchange refinepatch, which can add some more vertices and faces from the original one. But after once, there are still holes and gaps. Could you leave a email thus I can send you my files and pictures, thanks a lot for your help
Muhammed Talu
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 个)

YE HUICHAO
YE HUICHAO 2012-1-10
Please help if anyone!!!

类别

Help CenterFile Exchange 中查找有关 Triangulation Representation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by