generate triangular mesh starting from the external nodes (rx3) of a circle

1 回表示 (過去 30 日間)
Alberto Acri
Alberto Acri 2023 年 9 月 25 日
編集済み: Bruno Luong 2023 年 9 月 25 日
HI! I should generate a triangular mesh starting from the external nodes (rx3 matrix) of a circle arranged in space.
load('V.mat')
figure
plot3(V(:,1),V(:,2),V(:,3),'r.','Markersize',5)
grid on
xlabel('x')
ylabel('y')
zlabel('z')
view([15,50,30])
axis equal
  3 件のコメント
Alberto Acri
Alberto Acri 2023 年 9 月 25 日
Hi @Dyuman Joshi! I would like to create a triangular mesh, but the end goal would be to save this circular plane in stl format!
Dyuman Joshi
Dyuman Joshi 2023 年 9 月 25 日
What is the triangular mesh supposed to be like?
Does @Matt J's answer below create the mesh you wanted to convert?

サインインしてコメントする。

採用された回答

Matt J
Matt J 2023 年 9 月 25 日
load V
V=num2cell(V,1);
[x,y,z]=deal(V{:});
trisurf(delaunay(x,y), x,y,z)
  2 件のコメント
Alberto Acri
Alberto Acri 2023 年 9 月 25 日
Is it possible to extract the STL of this geometry?
Bruno Luong
Bruno Luong 2023 年 9 月 25 日
load V;
stlwrite(triangulation(delaunay(V(:,[1 2])),V),'mycircle.stl')

サインインしてコメントする。

その他の回答 (1 件)

Bruno Luong
Bruno Luong 2023 年 9 月 25 日
編集済み: Bruno Luong 2023 年 9 月 25 日
load V;
n=size(V,1); % 360
stlwrite(triangulation([ones(n-2,1) (2:n-1)' (3:n)'],V),'mycircle.stl')

カテゴリ

Help Center および File ExchangeSTL (STereoLithography) についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by