Hi,<div><br></div><div>I&#39;m using vtkBoxWidget2 to select a part of something in the scene, but I don&#39;t want to let the selection box rotate I just want the Handles (little spheres) able.<br>That way I will Just Resize the selection box through the handles.</div>

<div><br></div><div>I try the method vtkBoxWidget2::RotationEnableOff() but it seems not to work.</div><div><br></div><div>..... some part of the code where I create some VTK objects ......</div><div><br></div><div><div>
    BoxWidget2 = vtkBoxWidget2::New();</div>
<div>    BoxWidget2-&gt;SetInteractor(Interactor);</div><div>    BoxWidget2-&gt;SetRepresentation(BoxRepresentation);</div><div>    BoxWidget2-&gt;KeyPressActivationOff();</div></div><div><br></div><div>..... some part of the code where I want to enable the Widget but turn of its rotation .....</div>

<div><br></div><div><div>    BoxRepresentation-&gt;OutlineCursorWiresOff();</div><div>    BoxRepresentation-&gt;OutlineFaceWiresOff();</div><div><br></div><div>    BoxWidget2-&gt;RotationEnableOff(); // this line don&#39;t disable the rotation... I still can click on one of the planes of the box and rotate it.</div>

<div><br></div><div>    BoxWidget2-&gt;On();</div><div>    Renderer-&gt;Render();</div></div><div><br></div><div>Hope someone can help me.</div><div><br></div><div>Best regards.</div><div><br>-- <br>Matheus Brasileiro Passos<br>

Engenharia de Controle e Automação<br>
</div>