3d convex polygon from connectivity list and vertices
1 回表示 (過去 30 日間)
古いコメントを表示
i made 3d convex polygon
A=rand(10,3);
DT3 = delaunayTriangulation(A);
[C4,v4]= convexHull(DT3);
trisurf(C4,DT3.Points(:,1),DT3.Points(:,2),DT3.Points(:,3), ...
'FaceColor','w')
hold on
connect=C4;
e=[];
l=length( connect);
for i=1:l
connect1=connect(i,:);
a=connect1(1,1);
b=connect1(1,2);
c=connect1(1,3);
d=[DT3.Points(a,:);DT3.Points(b,:);DT3.Points(c,:)];
e=[e;d];
end
C4 is the connectivity list of polygons DT3.Points the vertices . i want to make the polygon back the reverse but few points connects to oher points and that connecting line comes inside the polygons .because i m making a new matrix from connectivity list
1 3 4
1 4 7
1 7 9
1 9 10
1 10 3
2 3 10
2 5 3
2 7 5
2 10 7
3 5 4
4 5 7
7 10 9
underlined 7 gets connected to 3 makes a line which is inside the polygon;
"Warning: Duplicate data points have been detected and removed.
The Triangulation indices are defined with respect to the unique set of points in delaunayTriangulation. "
becasue of the connectivity pattern and because i m not doing it right .how this can be solved ?
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Elementary Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!