No, just call the method. It is static, so you don't have to generate a triangle object.<br><br><div><div>// Description:</div><div>// Compute the triangle normal from three points.</div>static void vtkTriangle::ComputeNormal(double v1[3], double v2[3], double v3[3], double n[3]);<br>
<br> - David<br><br><br>On Fri, Jul 8, 2011 at 10:45 AM, Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>> wrote:<br>> So do you mean I need to generate a triangle from the three points first?<br>
> May I ask how to generate it?<br>><br>> -----Original Message-----<br>> From: David Gobbi [mailto:<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>]<br>> Sent: Saturday, July 09, 2011 1:35 AM<br>
> To: Xiaopeng Yang<br>> Cc: vtk<br>> Subject: Re: [vtkusers] How to generate a plane from three arbitrary points<br>><br>> Hi Xiaopeng,<br>><br>> Use vtkTriangle::ComputeNormal() to compute the plane normal.<br>
> Then use the first point as the Origin of the plane.<br>><br>> - David<br>><br>><br>> On Fri, Jul 8, 2011 at 10:29 AM, Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>> wrote:<br>
>> Hi,<br>>><br>>><br>>><br>>> Is there any class or method to generate a vtk plane from three arbitrary<br>>> points?<br>>><br>>><br>>><br>>> Thanks,<br>>><br>
>> Xiaopeng<br>><br>><br>><br>><br>><br>><br>><br>><br><br></div>