[vtkusers] How to generate a plane from three arbitrary points

Xiaopeng Yang yxp233 at postech.ac.kr
Fri Jul 8 12:44:38 EDT 2011


Thank you. I will try it.

-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Saturday, July 09, 2011 1:33 AM
To: Xiaopeng Yang
Cc: vtk
Subject: Re: [vtkusers] How to generate a plane from three arbitrary points

On Fri, Jul 8, 2011 at 12:29 PM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> Hi,
>
>
>
> Is there any class or method to generate a vtk plane from three arbitrary
> points?
>
>
>
> Thanks,
>
> Xiaopeng

You could use the functions in vtkMath to perform this computation:
http://en.wikipedia.org/wiki/Plane_%28geometry%29#Method_3

and then set the "center" of the plane to be the centroid of those points.

David










More information about the vtkusers mailing list