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;
p = patch('Faces',faces,'Vertices',verts,'FaceVertexCData',cindex,'FaceColor','interp')