# How to call Examples Data Easily for VTK Examples?

**URL:** https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371
**Category:** Support
**Created:** [April 25, 2022, 1:46pm UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371 "2022-04-25T13:46:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://discourse.vtk.org/user_avatar/discourse.vtk.org/freya_the_goddess/32/4942_2.png) [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)
#### Post date: [April 25, 2022, 1:46pm UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371/1 "2022-04-25T13:46:31Z")

</div>

Hi all, good day to you all…

I have git clone this repository:

> **[GitHub - Kitware/vtk-examples: This is the VTK Examples Web Site. This is a...](https://github.com/Kitware/vtk-examples/)**
>
> This is the VTK Examples Web Site. This is a mirror of the https://gitlab.kitware.com/vtk/vtk-examples repository in order to host web pages. DO NOT SUBMIT MERGE REQUESTS HERE. - GitHub - Kitware/v...

then build it using Cmake

After that I test Delaunay3D, it needs .vtp file, so I choose Bunny.vtp

 ![1vtk1](https://discourse.vtk.org/uploads/default/original/2X/7/725c6d396ec0323f08a0a5904f03cbfac2581e45.png)

the file is in the ‘vtk-examples/src/Testing/Data’

my questions are:

1. Is there any shortcut to call the file from ‘vtk-examples/src/Testing/Data’? besides mentioning the path (it can be shortened with environment variable, but I want to know if anyone here can create a shortcut to call data like (.g / .vtp / .xml etc) that is faster than my method now?

2. Why the Bunny.vtp in the newest repository:  
‘[vtk-examples/Bunny.vtp at master · Kitware/vtk-examples · GitHub](https://github.com/Kitware/vtk-examples/blob/master/src/Testing/Data/Bunny.vtp)’  
is different than the one from Lorensen’?  
‘[VTKWikiExamples/Bunny.vtp at master · lorensen/VTKWikiExamples · GitHub](https://github.com/lorensen/VTKWikiExamples/blob/master/Testing/Data/Bunny.vtp)’

I want to use the one that can be used without internet connection, are both capable ? even if the newest repository seems to only contains 3 lines ?

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [April 26, 2022, 9:48pm UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371/2 "2022-04-26T21:48:40Z")

</div>

Do not use the Lorenson site - it is obsolete and not maintained.

In the vtk-examples site, data is stored as git-lfs files, hence the three line text file you are seeing when you open it in a web browser. So in **github** you need to download the whole repository to get the data.

If you go to the **gitlab** version of vtk-examples, you can download the individual files using a web browser.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://discourse.vtk.org/user_avatar/discourse.vtk.org/freya_the_goddess/32/4942_2.png) [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)
#### Post date: [May 1, 2022, 8:41am UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371/3 "2022-05-01T08:41:02Z")

</div>

Thank you Andrew Maclean, I am just a bit worry seeing that the codes in Lorensen and the official VTK-examples github are different.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [May 1, 2022, 9:55pm UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371/4 "2022-05-01T21:55:33Z")

</div>

The owner of the Lorenson site died in 2019. We had to create a new site namely, `vtk-examples` and also added and updated examples. So don’t use the Lorenson site.
