필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to retrive the vertex ID of connected points

조회 수: 1 (최근 30일)
Amani
Amani 2013년 12월 10일
마감: Amani 2013년 12월 11일
Hi
after calculating triangulation I need to examine the distance between two connected points if it is above the threshold I want to save these points in a matrix, but I don't know how to examine the connectivity?
this is my code that I'm trying to fix
k = triangulation(dt,x,y);
ps = k.Points;
[m n]=size(ps);
newPs = [];
for i = 1 : m
for j = 1 : n
if isConnected(k,ps(i,:),ps(j,:))% for isConnected I should retrieve the vertixId not the x and y coordinates of the vertex , how can I retrieve the vertix IDs
Dist= sqrt((ps(i, 1) - ps(j, 1)) ^ 2 + (ps(i, 2) - ps(j, 2)) ^ 2);
if Dist > 1000
newPs = [ newPs ; ps(i,:)];
end
end
end
thanks

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by