generate triangular mesh starting from the external nodes (rx3) of a circle
2 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
Matt J
2023-9-25
load V
V=num2cell(V,1);
[x,y,z]=deal(V{:});
trisurf(delaunay(x,y), x,y,z)
更多回答(1 个)
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')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!