[vtkusers] vtkPlaneSource and normal

Will Schroeder will.schroeder at kitware.com
Fri Jun 7 07:44:09 EDT 2002


At 01:32 PM 6/7/2002 +0200, Frederic Huguet wrote:
>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 ?

 From vtkPlaneSource.h:

  vtkGetVectorMacro(Normal,float,3);

Which expands into GetNormal(). See Common/vtkSetGet.h for details on that 
macro.

Will


William J. Schroeder, Ph.D
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder at kitware.com
1-518-371-3971 x102
1-518-371-3971 (fax)




More information about the vtkusers mailing list