Determine cross sectional area from patch data

13 ビュー (過去 30 日間)
J Travis Hunsucker
J Travis Hunsucker 2019 年 12 月 17 日
コメント済み: J Travis Hunsucker 2019 年 12 月 18 日
Hello,
I am trying to slice a patch object and determine the cross sectional areas and ordinates at different vertical points.
For example, if I take the Matlab teapot example shown below. I would like to slice the teapot at z=0.5:0.5:2.5 and determine the area and the ordinates in the XY plane.
[verts, faces, cindex] = teapotGeometry;
figure
p = patch('Faces',faces,'Vertices',verts,'FaceVertexCData',cindex,'FaceColor','interp')
view(3)
xlabel('X');ylabel('Y');zlabel('Z')

採用された回答

darova
darova 2019 年 12 月 17 日
I think there is no built-in function for your purpose
Try to search something like THIS
  1 件のコメント
J Travis Hunsucker
J Travis Hunsucker 2019 年 12 月 18 日
Darova, Thank you for pointing this function out to me. I think it works. I am still trouble shooting my code, but will updated this post with what I find in case someone else shares this issue in the future. Thanks for the help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by