MATLAB Answers

Determine cross sectional area from patch data

4 views (last 30 days)
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')

  0 Comments

Sign in to comment.

Accepted Answer

darova
darova on 17 Dec 2019
I think there is no built-in function for your purpose
Try to search something like THIS

  1 Comment

J Travis Hunsucker
J Travis Hunsucker on 18 Dec 2019
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!

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags


Translated by