pointLocation / DelaunayTri - custom tri input
1 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Delaunay Triangulation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!