# Mesh deformation using vespa in paraview

**URL:** https://discourse.paraview.org/t/mesh-deformation-using-vespa-in-paraview/11965
**Category:** ParaView Support
**Tags:** vtk
**Created:** [April 26, 2023, 8:46am UTC](https://discourse.paraview.org/t/mesh-deformation-using-vespa-in-paraview/11965 "2023-04-26T08:46:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mehdi\_Hamidi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mehdi_hamidi/32/11308_2.png) [@Mehdi\_Hamidi](https://discourse.paraview.org/u/Mehdi_Hamidi)
#### Post date: [April 26, 2023, 8:46am UTC](https://discourse.paraview.org/t/mesh-deformation-using-vespa-in-paraview/11965/1 "2023-04-26T08:46:54Z")

</div>

Hi,

I am currently using Vespa to perform mesh deformation in Paraview, but I must admit that I don’t quite understand how to use it properly. If anyone can give me the steps to follow to perform it, I would be grateful.

I have attached screenshots of my input file, the target, and the ROI (region of interest), but I keep getting an error. Please provide a detailed but not exhaustive answer since I am a new Paraview user.

Thank you for your time.  
Mehdi Hamidi

mesh(with generatedglobalID that i generated using a filter on the initial mesh) and the target(point source)  
 ![datas](https://discourse.paraview.org/uploads/default/original/2X/5/5de69230cab0cfe5abd857c44ff950080a727a59.png)  
Mesh - target(white point) - and the region of interest

 ![mesh_roi_target](https://discourse.paraview.org/uploads/default/original/2X/d/d33c15e8e1bae3b6e655f38e6fd634955ea27f6f.png)  
input and source (i choosed GenerateGlobalIds1 as input and pointsource1 as source)  
 ![input_source](https://discourse.paraview.org/uploads/default/original/2X/b/bac4e641135770fc7bf839191df219084daab9f3.png)  
i select global ids  
 ![before_deformation](https://discourse.paraview.org/uploads/default/original/2X/7/7fc2c7f6dc1660ac75d4ee81872a156fea0f4856.png)  
after applying i get this error  
 ![error](https://discourse.paraview.org/uploads/default/original/2X/5/562a4dd5ff0372fbb87c16abab36017600cdea4e.png)

---

<div class="post-metadata">

### Author: ![Tiffany\_Chhim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tiffany_chhim/32/10690_2.png) [@Tiffany\_Chhim](https://discourse.paraview.org/u/Tiffany_Chhim)
#### Post date: [April 26, 2023, 11:08am UTC](https://discourse.paraview.org/t/mesh-deformation-using-vespa-in-paraview/11965/2 "2023-04-26T11:08:57Z")

</div>

Hi @Mehdi_Hamidi,

From what I can see in your screenshots, it looks like the ROI (the selection) has not been set as an input to the filter. This should be done by clicking on the “ **Copy Active Selection** ” button.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5b054ee3e25976cbed2cb417a2d3f00474d7fb47.png)

---

<div class="post-metadata">

### Author: ![Mehdi\_Hamidi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mehdi_hamidi/32/11308_2.png) [@Mehdi\_Hamidi](https://discourse.paraview.org/u/Mehdi_Hamidi)
#### Post date: [May 22, 2023, 7:46am UTC](https://discourse.paraview.org/t/mesh-deformation-using-vespa-in-paraview/11965/3 "2023-05-22T07:46:15Z")

</div>

Hi @Tiffany_Chhim;

Thanks for your answer and sorry for my late reply, as you pointed it out the copy of the active selection was what i needed.

Thank you very much !
