[vtkusers] vtkPlaneSource and normal

Luca Antiga lucantiga at hotmail.com
Fri Jun 7 08:22:16 EDT 2002


If you define vtkPlaneSource with three points a, b, c, you can get the 
normal by vtkMath::Cross(b-a,c-a,n) and then vtkMath::Normalize(n).

Luca


>From: Frederic Huguet <fxh39668 at gsk.com>
>To: vtkusers at public.kitware.com
>Subject: [vtkusers] vtkPlaneSource and normal
>Date: Fri, 07 Jun 2002 13:32:56 +0200
>
>Hi,
>
>I use a vtkPlaneSource and MFC to create a cutting plane on a 3D object.
>But I need to get the normal of this plane in real time. There is no
>function GetNormal, so How could I compute the normal vector to the
>plane ? I thought vtkPlaneWidget was useful but I can't integrate it to
>my MFC Interface. Is there any way to find the normal ?
>
>Thanks
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the vtkusers mailing list