Extracting 2D plane values from a 3D mesh
显示 更早的评论
I have 3 arrays (x,y,z) of size 243,528,000 each. These array have coordinates in x,y and z respectively. I want to extract the data in the 2D plane (say yz plane values at x = 2) from the 3D mesh. These x,y,and z arrays are used to create 3D mesh. How to perform this.
回答(1 个)
Walter Roberson
2018-12-17
0 个投票
If you have vectors of values, then scatteredInterpolant() or griddedInterpolant()
However in your earlier question you were dealing with a regular mesh that for whatever reason had been reshaped into vectors. If that is still the situation then you should rearrange back into a 3D shape instead of working with scattered points.
Is your grid 1825 * 2085 * 64 ?
4 个评论
Abhishek Saini
2018-12-17
Walter Roberson
2018-12-17
Is there a reason that you converted from the 1000*417*584 mesh to vectors 243528000*1 ? And which vector has the value associated with the nodes ?
My main objective is to find the 2D plane to implement inpolygon because it is for 2d.
Abhishek Saini
2018-12-18
Walter Roberson
2018-12-18
If the input is the full 243528000 and the grid is regular, then reshape and indexing will be much much faster.
Otherwise, use logical masks comparing to the x y z bounding box of the notch to select a small subset of the points, which you can then compare against the detailed polygon.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Segmentation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
