Find nodes in a mesh

3 visualizaciones (últimos 30 días)
Cristiana Abilheira
Cristiana Abilheira el 29 de Mzo. de 2019
Respondida: darova el 29 de Mzo. de 2019
Hello everyone, I hope someone can help me on this
I have a STL file imported, with it I created a triangulated mesh. Like the one in the image.
What I need is to find the nodes in the blue square ( -200<x<200& -200<y<200).I guess this information is in the big array of vertex from where I created this mesh. Then I need to know not only the nodes but the triangles that are in the area. I also have an array with "faces" information...
How can I get this?
matanswers.PNG

Respuestas (1)

darova
darova el 29 de Mzo. de 2019
if matrix with faces/triangles like [1 2 3; 4 5 6; 7 8 9 ....
[~, indv] = find( -200<x & x<200 & -200<y & y<200 ); % indices of X and Y in square
indf = ceil(indv/3); % indices of faces
see also inpolygon()

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by