How do I get the actual mesh Vertices and Triangles generated by the spiralRectangular function in the Antenna Tool Box?
3 ビュー (過去 30 日間)
古いコメントを表示
How do I get the actual mesh Vertices and Triangles generated by the spiralRectangular function in the Antenna Tool Box?
0 件のコメント
回答 (1 件)
Steve Eddins
2020 年 9 月 25 日
編集済み: Steve Eddins
2020 年 9 月 25 日
I don't see a documented interface for this, but you can find the patch object produced by the show method and then get the faces and vertices from the patch object. Just be aware that digging into the internals of a visualization like this might not work exactly the same way in a future release.
H = spiralRectangular;
show(H)
p = findobj(gca,'type','patch')
p(2)
ans =
Patch with properties:
FaceColor: [0.8745 0.7255 0.2275]
FaceAlpha: 1
EdgeColor: 'none'
LineStyle: '-'
Faces: [30×3 double]
Vertices: [32×3 double]
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!