Check points inside n number of triangle in a square

3 visualizaciones (últimos 30 días)
Boni_Pl
Boni_Pl el 17 de Jul. de 2019
Respondida: Bruno Luong el 17 de Jul. de 2019
Hello
In a square geometry n number of triangles and coordinates of each vertices are given.If N no. of points are in the medium then how to write for loop to check how many points are inside each of the triangle. Please help.
  1 comentario
infinity
infinity el 17 de Jul. de 2019
Hello,
I can give you an simplest idea to do this
1. write a function to check wheather a point is inside or not a triagle.
2. Use for loop for each point in N points and for loop for each triangle in n triangles. Then, count how many triangles containt this point.

Iniciar sesión para comentar.

Respuesta aceptada

Bruno Luong
Bruno Luong el 17 de Jul. de 2019
see pointLocation method of Triangulation class

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by