필터 지우기
필터 지우기

How to extract edges of a whole 3D plot and also for the holes in it?

조회 수: 2 (최근 30일)
Faez Alkadi
Faez Alkadi 2017년 9월 30일
댓글: Faez Alkadi 2017년 10월 24일
I have used the function (plotIGES) to plot a 3D IGES surface(as shown in the picture and attached).And I want to extract the edges of the whole surface and the hole(s) in it?
According to plotIGES function the surface can be plotted as triangular patches or triangular mesh as shown
FacePlot=plotIGES(ParameterData,1,1,1000,1,10,1,'r');%you can change the second input to 2 to get triangular mesh
xlabel('X')
ylabel('Y')
zlabel('Z')
Help would be appreciated.
Thank you so much.

채택된 답변

KSSV
KSSV 2017년 10월 5일
clear all
load fv.mat ;
%
tri = fv.faces ;
coor = fv.vertices ;
[e,te,e2t,bnd] = connectivity(coor(:,1:2),tri) ;
triplot(tri,coor(:,1),coor(:,2))
hold on
plot(coor(bnd,1),coor(bnd,2),'*r')
  댓글 수: 1
Faez Alkadi
Faez Alkadi 2017년 10월 24일
This was good for .stl file format. But thank you so much for the great effort.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by