[vtkusers] Get the orientation of vtkPlaneWidget

Charl Botha c.p.botha at tudelft.nl
Sun May 18 15:23:49 EDT 2008


On Sun, May 18, 2008 at 9:15 PM, Stefan Maas
<stefan.maas at fh-gelsenkirchen.de> wrote:
> actor.SetPostion(planeWidget.GetPostion()); //java
>
> But for the orientation it doesn't work because there is no method called
> "planeWidget.GetOrientation()".
>
> Any Ideas?

What do you define as the orientation of the plane?

You could for example get the plane normal with
planeWidget.GetNormal() and align that with the relevant axis of your
implant actor.  With the Get{Origin,Point1,Point2}() you can also get
to the geometry of the plane itself.

Good luck,
Charl



More information about the vtkusers mailing list