Boundary Facets not returning all triangle vertices

3 ビュー (過去 30 日間)
Katherine Beaulieu
Katherine Beaulieu 2017 年 12 月 22 日
Hello all, I am trying to get the surface triangulation of a shape. I have created an alpha shape from my point cloud and have plotted this shape. When I apply boundaryFacets to the alpha shape, and then attempt to plot the result points, I don't get points that cover the whole shape. Would anyone be able to shed some light as to why this is happening? I have attached a screenshot of my attempt to plot all the vertices of the triangles from the result of boundary facets. Here is my code:
flapAlphaShape = alphaShape(fv.vertices) %fv.vertices is my point cloud
figure;
plot(flpaAlphaShape)
boundaryAlphaShape = boundaryFacets(flapAlphaShape)
for i=1:size(boundaryAlphaShape,1)
for j=1:size(boundaryAlphaShape,2)
hold on;
plot3(fv.vertices(boundaryAlphaShape(i,j),1),fv.vertices(boundaryAlphaShape(i,j),2),fv.vertices(boundaryAlphaShape(i,j),3),'oy','MarkerSize',5,'MarkerFaceColor','y')
end
end
Thank you in advance for the help!

回答 (0 件)

カテゴリ

Help Center および File ExchangeDelaunay Triangulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by