trimesh not working with 2D triangulation object
4 ビュー (過去 30 日間)
古いコメントを表示
%Tri is a triangulation object of a 2D mesh
trimesh(Tri) %throws error "The triangulation must reside in 3D space."
%However the following code works
pts = Tri.Points;
tria = Tri.ConnectivityList;
trimesh(tria,pts(:,1),pts(:,2),'Color','k')
%note the use of 'Color' as a Name-Value argument, Neither 'FaceColor' or
%'EdgeColor' work with this call, returning:
% Error using plot
% Unrecognized property FaceColor for class Line.
%or
% Error using plot
% Unrecognized property EdgeColor for class Line.
2 件のコメント
回答 (1 件)
Srija Kethiri
2023 年 4 月 21 日
Hi Ian,
The function ‘trimesh’ has an issue working with the 2D triangulation object. This issue is under investigation, and it might get fixed in the future releases.
参考
カテゴリ
Help Center および File Exchange で Delaunay Triangulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!