pointLocation / DelaunayTri - custom tri input

2 ビュー (過去 30 日間)
Joseph
Joseph 2014 年 2 月 7 日
コメント済み: Tale Saeedi 2018 年 8 月 27 日
Hello!
I am needing a very fast version of DelaunayTri + pointLocation. In fact, I am replacing:
t = tsearch(x,y,tri,xi,yi);
I have found that I can replace it with
DT = DelaunayTri(x,y);
t = pointLocation(DT,[xi yi]);
But I want a custom tri loaded from an existing saved file instead of calculating it with DelaunayTri. I am unable to load this custom tri into DT.Triangulation - MatLab won't let me edit the structure.
??? Error using ==> subsasgn
Cannot assign values to the Triangulation.
If I try to create my own structure, it tells me
??? Undefined function or method 'pointLocation' for input arguments of type
'struct'.
Is there any way to do this?
Thanks,
Joseph
  1 件のコメント
Tale Saeedi
Tale Saeedi 2018 年 8 月 27 日
tanx a lot, was helpful. just make x and y column vector

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

回答 (1 件)

Joseph
Joseph 2014 年 2 月 10 日
Anyone? Guess it can't be done then...

カテゴリ

Help Center および File ExchangeDelaunay Triangulation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by