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

David Gobbi david.gobbi at gmail.com
Fri Jul 8 12:48:59 EDT 2011


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/20110708/a9d8ab6f/attachment.htm>


More information about the vtkusers mailing list