How generate a patch object with tetramesh?
古いコメントを表示
I have a triangulation object and I'm trying to create a patch from it using tetramesh, but once I use tetramesh it gives me double instead of patch. How can I get a patch from triangulation that is meshed with tetrahydrons?
3 件のコメント
d = [-1 1];
[x,y,z] = meshgrid(d,d,d); % A cube
x = [x(:);0];
y = [y(:);0];
z = [z(:);0]; % [x,y,z] are corners of a cube plus the center.
dt = delaunayTriangulation(x,y,z);
Tes = dt(:,:);
X = [x(:) y(:) z(:)];
h = tetramesh(Tes,X);camorbit(20,0);
size(h)
class(h)
h(1)
Doesn't look like a double to me...
azarang asadi
2021 年 3 月 3 日
Walter Roberson
2021 年 3 月 3 日
R2020b.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Delaunay Triangulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
