Inpolygon input with faces and vertices?
Mostrar comentarios más antiguos
Hi,
from an external toolbox (<http://mtex-toolbox.github.io/>) I got a output of polygons (containing holes in general) defined by faces and matrices, which can be plotted using the "patch(S)" polygon plot (see MATLAB documentation of "patch" for more details).
For my own purposes I need to check if a specific coordinate is inside the polygon (such as in the "inpolygon" function). Unfortunatally, inpolygon only supports the input of vertices alone.
There is a the "poly2fv" which converts the polygonal representation into the faces and vertices representation, exactly the inverse from what I need.
Is there maybe an inverse of "poly2fv" in some way or does somebody knows about a function similiar to "inpolygon" which supports the vertices and faces input?
Respuestas (1)
Categorías
Más información sobre Polygonal Shapes en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!