필터 지우기
필터 지우기

Is there a special function to compute the length between one vertex and an interior point of a polygon ?

조회 수: 2 (최근 30일)
I am looking for a built-in Matlab function to compute one vertex and an interior point on a Polygon ?
  댓글 수: 4
Jan
Jan 2016년 3월 1일
I do not understand the question. The distance between q and A seems to be trivial. But what does "find the area of triangles generated because the point q" mean?
Matt J
Matt J 2016년 3월 1일
For example I have a triangle with three vertices A,B,C and a point inside q. I need a function which is capable of find the length between the point q and A for example
You should modify the title of your post since the distance between q and A is not a "length between specific vertices". It is the distance between one vertex and an interior point.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 1일

추가 답변 (1개)

Matt J
Matt J 2016년 3월 1일
You can use delaunayTriangulation to partition the polygon+q into triangles. Use the ConnectivityList property to find the vertices of the sub-triangles and then their area.
  댓글 수: 4
Susan Arnold
Susan Arnold 2016년 3월 1일
I meant, how can I recognize this point or how can I extract this point from the DT ?!!
Matt J
Matt J 2016년 3월 1일
편집: Matt J 2016년 3월 1일
The link I gave you explains the book-keeping of points in the triangulation. In particular, if you enter the query point as row P(j,:) when you build the DT object, then this point will be given a vertex ID of j, as explained here. The other methods and properties of DT use this ID to identify points in the triangulation.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by