# Get coordinate of vertices of each triangle?

**URL:** <https://community.wolfram.com/t/get-coordinate-of-vertices-of-each-triangle/9251>\
**Category:** Questions\
**Tags:** geometry, graphics-and-visualization\
**Created:** [September 15, 2016, 3:58am UTC](https://community.wolfram.com/t/get-coordinate-of-vertices-of-each-triangle/9251 "2016-09-15T03:58:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scinar](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/scinar/32/39519_2.png) [@scinar](https://community.wolfram.com/u/scinar)\
**Post date:** [September 15, 2016, 3:58am UTC](https://community.wolfram.com/t/get-coordinate-of-vertices-of-each-triangle/9251/1 "2016-09-15T03:58:05Z")

</div>

Hi All, Assume that I have the figure below and I know coordinates of each point. How can I get coordinate of vertices of each triangle? For example

```
T1={{0,0},{1,0},{1,1}} ,T2={{0,0},{0,1},{1,1}} 

```

and so on. Thanks in advance..

 ![triangle.png](https://global.discourse-cdn.com/wolfram/original/3X/8/2/82c4c8c3a1574010c75e2c4d1db33363fd5c4050.png)

```
n = 2;

pts = Flatten[Table[{i, j}, {j, 0, n}, {i, 0, n}], 1]

{{0, 0}, {1, 0}, {2, 0}, {0, 1}, {1, 1}, {2, 1}, {0, 2}, {1, 2}, {2, 2}}

ListPlot[Labeled[#, #] & /@ pts, Axes -> False]

```

---

<div class="post-metadata">

**Author:** ![scinar](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/scinar/32/39519_2.png) [@scinar](https://community.wolfram.com/u/scinar)\
**Post date:** [September 15, 2016, 5:33am UTC](https://community.wolfram.com/t/get-coordinate-of-vertices-of-each-triangle/9251/2 "2016-09-15T05:33:49Z")

</div>

I found this solution but if you have fancy one I can look at that too.

```
lowerRight = Drop[Table[{{i, j}, {i + 1, j}, {i + 1, j + 1}}, {j, 0, n}, {i, 0, n}], -1, -1]
upperLeft = Drop[Table[{{i, j}, {i, j + 1}, {i + 1, j + 1}}, {j, 0, n}, {i, 0, n}], -1, -1]

```
