Find all IDs in pointLocation for point located on boundary of polygon.

3 ビュー (過去 30 日間)
Keyur Panchal
Keyur Panchal 2022 年 1 月 11 日
コメント済み: Keyur Panchal 2022 年 3 月 11 日
When we search for a point located on boundary then the largest ID is returned, but I want all the IDs how can I do that?
Is there any other way to find it?
  2 件のコメント
Matteo Nicoletta
Matteo Nicoletta 2022 年 3 月 10 日
Hi Keyur, I've got the same problem. Did you solve this?
Keyur Panchal
Keyur Panchal 2022 年 3 月 11 日
it is unsolved but https://in.mathworks.com/matlabcentral/fileexchange/68848-pointlocationquadtree this helped me solving other troubles, you can try it.

サインインしてコメントする。

回答 (2 件)

KSSV
KSSV 2022 年 1 月 11 日
Read about inpolygon function.

Matt J
Matt J 2022 年 1 月 11 日
If it's a convex cloud, you can just use convhull(). If it is not convex, then you need to define what you mean by the boundary, since there are many 3D envelopes possible for a point cloud. You might consider alphashape(), however..
  2 件のコメント
Keyur Panchal
Keyur Panchal 2022 年 1 月 11 日
Thanks for your answer
I am working in 2D, for query point * shown in plot, it is situated on boundary of two triangles 1-7-6 and 1-2-7, but with pointLocation function only largest ID is returned i.e. 6-7-1, I need both.
Matt J
Matt J 2022 年 1 月 11 日
Did you intend to attach code or a plot? I see none.
In any case, my advice applies in 2D as well.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTriangulation Representation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by