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

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


Got it. Thank you.

 

From: David Gobbi [mailto:david.gobbi at gmail.com] 
Sent: Saturday, July 09, 2011 1:49 AM
To: Xiaopeng Yang
Cc: vtk
Subject: Re: [vtkusers] How to generate a plane from three arbitrary points

 

No, just call the method.  It is static, so you don't have to generate a
triangle object.

// Description:

// Compute the triangle normal from three points.

static void vtkTriangle::ComputeNormal(double v1[3], double v2[3], double
v3[3], double n[3]);

- David


On Fri, Jul 8, 2011 at 10:45 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> So do you mean I need to generate a triangle from the three points first?
> May I ask how to generate it?
>
> -----Original Message-----
> From: David Gobbi [mailto:david.gobbi at gmail.com]
> Sent: Saturday, July 09, 2011 1:35 AM
> To: Xiaopeng Yang
> Cc: vtk
> Subject: Re: [vtkusers] How to generate a plane from three arbitrary
points
>
> Hi Xiaopeng,
>
> Use vtkTriangle::ComputeNormal() to compute the plane normal.
> Then use the first point as the Origin of the plane.
>
>  - David
>
>
> On Fri, Jul 8, 2011 at 10:29 AM, 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
>
>
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110709/d4631e11/attachment.htm>


More information about the vtkusers mailing list