Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
I am looking for a built-in Matlab function to compute one vertex and an interior point on a Polygon ?
  4 Kommentare
Jan
Jan am 1 Mär. 2016
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 am 1 Mär. 2016
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 1 Mär. 2016

Weitere Antworten (1)

Matt J
Matt J am 1 Mär. 2016
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 Kommentare
Susan Arnold
Susan Arnold am 1 Mär. 2016
I meant, how can I recognize this point or how can I extract this point from the DT ?!!
Matt J
Matt J am 1 Mär. 2016
Bearbeitet: Matt J am 1 Mär. 2016
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Delaunay Triangulation finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by