[vtkusers] Scaling planeWidget

David Doria daviddoria at gmail.com
Tue Jan 28 07:40:23 EST 2014


On Tue, Jan 28, 2014 at 6:43 AM, agatte <agatakrason at gmail.com> wrote:

> Hello,
>
>
> I want to scale a vtkPlaneWidget.
> I followed example from vtk wiki. It works well on the sphere, it looks
> that
> has normal size.
> But when I load my  mesh model. Plane is very small.
>
> I am trying to add planeWidget->GetProp3D()->SetScale(10,10,10);
> I received errror : Access violation reading location ...
>
> I don' t know what is it wrong in my code
>

I wouldn't mess with the prop inside of a widget. Instead you should
probably use the planeWidget->SetPoint1() and SetPoint2() to specify
corners of the plane.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140128/7e207df1/attachment.html>


More information about the vtkusers mailing list