# How to reset vtkProp3D

**URL:** https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943
**Category:** Support
**Created:** [November 24, 2022, 3:44am UTC](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943 "2022-11-24T03:44:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zhang-qiang-github](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhang-qiang-github/32/2519_2.png) [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)
#### Post date: [November 24, 2022, 3:44am UTC](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943/1 "2022-11-24T03:44:47Z")

</div>

`vtkProp3D::RotateX` allow to rotate the prop.

`prop->RotateX(10); prop>RotateX(20);` would rotate the prop with 30 degree compared with the original prop.

Is there a `vtkProp3D::Reset()` method which can clear the rotation status. For example:

```nohighlight
prop->RotateX(10);
prop->Reset(); // clear the rotation status
prop->RotateX(20);

```

I hope the `prop` rotate only 20 degree rather than 10+20 degree.

Is there a `Reset` method or a similar method?

Any suggestion is appreciated~~~

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [November 24, 2022, 6:54pm UTC](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943/2 "2022-11-24T18:54:05Z")

</div>

Hi,

It seems that `vtkProp3D` does not define a reset-like method. You could try subclassing it and adding one:

```cpp

void myVtkProp3D::Reset()
{
  this->IsIdentity = 1;
  this->Transform->Identity();
  this->Modified();
}

```

take care,

Paulo

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [November 24, 2022, 6:59pm UTC](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943/3 "2022-11-24T18:59:32Z")

</div>

Alternativelly, you can use `SetOrientation()` instead of any of the `Rotate*()` methods. `SetOrientation()` resets the internal transform object:

```cpp
prop->SetOrientation(10, 0, 0);
//prop->Reset(); // don't need to reset
prop->SetOrientation(20, 0, 0);

```

It looks dirty, but it would spare you a cumbersome subclassing.

regards,

Paulo
