Find Holes in Triangular Mesh

Finds and returns a cell array of holes in a triangular mesh

您现在正在关注此提交

function [holeCellArray,bounding_triangles,holeLengths] = findTriMeshHoles(faces,vertices)
% Finds holes in a triangular mesh
% Note: Does not work if a hole shares more than one vertex with other holes
% Input:
% faces = M x 3
% vertices = N x 3 (optional if you want the hole lengths)
% Output:
% holeCellArray = P x 1 cell array containing a list of holes, which are
% traced in consecutive order (list of scalar indices)
% bounding_triangles = Q x 3 list of faces that contain a bounding edge (does
% not contain triangles that only has a single bounding vertex)
% holeLengths = P x 1 vector containing the perimeter of each hole
Please let me know if you find any errors. Thanks!

引用格式

Audrey Cheong (2026). Find Holes in Triangular Mesh (https://ww2.mathworks.cn/matlabcentral/fileexchange/62419-find-holes-in-triangular-mesh), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 General Physics 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

Fix demo.m
Bug fix