<HTML>
<HEAD>
<TITLE>Re: [vtkusers] Drawing a single triangle</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>You have to create a data set (vtkPolyData) and add the triangle as a cell and the points are specified as well.<BR>
Look hear for an example:<BR>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/DataManipulation/Python/BuildUGrid.py?root=VTK&amp;content-type=text/plain">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/DataManipulation/Python/BuildUGrid.py?root=VTK&amp;content-type=text/plain</a><BR>
<BR>
Gerrick<BR>
<BR>
On 1/7/09 8:18 PM, &quot;Kerry Loux&quot; &lt;<a href="louxkr@gmail.com">louxkr@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello,<BR>
<BR>
For my application, I need to display a single triangle in 3-space. &nbsp;The triangle is not necessarily equilateral. &nbsp;What is the easiest way to create a triangle object? &nbsp;I considered vtkTriangle and vtkTriangleStrip, but I'm not clear on how to assign the locations of the vertices. &nbsp;Also, as far as I can tell the vtkTriangle (and vtkCell) classes don't have any kind of GetOutput() function. &nbsp;How do you map these classes to an actor? &nbsp;I was hoping for some kind of primitive shape source, similar to vtkCyliderSource or vtkSphereSource, but there doesn't seem to be any.<BR>
<BR>
I'm still using the 5.0.4 release.<BR>
<BR>
Thanks for your advice!<BR>
<BR>
-Kerry<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
This is the private VTK discussion list.<BR>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>