# Accessing a list of a Model's Vertices programmatically?

**URL:** <https://discourse.slicer.org/t/accessing-a-list-of-a-models-vertices-programmatically/27039>\
**Category:** Support\
**Tags:** 3d-model\
**Created:** [January 4, 2023, 11:57pm UTC](https://discourse.slicer.org/t/accessing-a-list-of-a-models-vertices-programmatically/27039 "2023-01-04T23:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenagl12](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/stevenagl12/32/3391_2.png) [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Post date:** [January 4, 2023, 11:57pm UTC](https://discourse.slicer.org/t/accessing-a-list-of-a-models-vertices-programmatically/27039/1 "2023-01-04T23:57:21Z")

</div>

How would you go about accessing a list of a model’s vertices programmatically once a model has been added to the scene?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 5, 2023, 12:12am UTC](https://discourse.slicer.org/t/accessing-a-list-of-a-models-vertices-programmatically/27039/2 "2023-01-05T00:12:33Z")

</div>

This example is for fiber bundles but the access to the poly data is the same with `slicer.util.arrayFromModelPoints`.

[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#iterate-over-tract-fiberbundle-streamline-points](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#iterate-over-tract-fiberbundle-streamline-points)

---

<div class="post-metadata">

**Author:** ![stevenagl12](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/stevenagl12/32/3391_2.png) [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Post date:** [January 8, 2023, 10:47pm UTC](https://discourse.slicer.org/t/accessing-a-list-of-a-models-vertices-programmatically/27039/3 "2023-01-08T22:47:18Z")

</div>

Alright thank you very much.
