# Howto get a centroid of a section in a slice?

**URL:** <https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339>\
**Category:** Development\
**Tags:** python\
**Created:** [July 16, 2022, 8:59am UTC](https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339 "2022-07-16T08:59:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [July 18, 2022, 2:02pm UTC](https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339/6 "2022-07-18T14:02:28Z")

</div>

well,现在的问题就转化成了如何提取当前界面某个多边形的顶点坐标。。。

> Well, the current question now becomes how to extract the vertex coordinates of a polygon of the current section. . .

---

_[View the full topic](https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339)._
