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.

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Dic. de 2018

0 votos

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 comentarios

Abhishek Saini
Abhishek Saini el 17 de Dic. de 2018
Model contain 1000*417*584 nodes in x, y and z direction respectively.
Mesh is structured. I have extracted the centroid of 8 node element and I want to extract the values in a plane.
My main objective is to find the 2D plane to implement inpolygon because it is for 2d.
Walter Roberson
Walter Roberson el 17 de Dic. de 2018
Abhishek Saini
Abhishek Saini el 18 de Dic. de 2018
I converted in to a linear vector to use it in another FE software for computaion. I want to create a semi circular notch (as a crack) by deleting elements from the mesh as shown in attached figure. So I was planning to find the plane at a particular position and then use inpolygon to find element number for deletion.Because the crack is of almost zero widht so I am afraid whether I could use the in_polyhedron funcition or not.image.png
Walter Roberson
Walter Roberson el 18 de Dic. de 2018
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Computational Geometry en Centro de ayuda y File Exchange.

Preguntada:

el 16 de Dic. de 2018

Comentada:

el 18 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by