After updating the positions, call Grid-&gt;Modified(), that should keep it in sync.<br /><br />On Jan 11, 2009 2:03pm, Kerry Loux &lt;louxkr@gmail.com&gt; wrote:<br />&gt; Gerrick,<br />&gt; <br />&gt; Thanks for the response.  I&#39;m using C++, and created this method to create a triangle object:<br />&gt; <br />&gt;     // Create the objects<br />&gt;     Points = vtkPoints::New();<br />&gt;     Array = vtkFloatArray::New();<br />&gt;     Triangle = vtkTriangle::New();<br />&gt; <br />&gt;     Grid = vtkUnstructuredGrid::New();<br />&gt;     TriangleMapper = vtkDataSetMapper::New();<br />&gt;     aTriangle = vtkActor::New();<br />&gt; <br />&gt;     // Triangles have three points<br />&gt;     Points-&gt;SetNumberOfPoints(3);<br />&gt; <br />&gt;     // Add some dummy points to the vtkPoints object<br />&gt; <br />&gt;     Points-&gt;InsertPoint(0, 0.0, 0.0, 0.0);<br />&gt;     Points-&gt;InsertPoint(1, 0.0, 0.0, 0.0);<br />&gt;     Points-&gt;InsertPoint(2, 0.0, 0.0, 0.0);<br />&gt; <br />&gt;     // Set up the float array<br />&gt;     Array-&gt;SetNumberOfComponents(3);<br />&gt; <br />&gt;     Array-&gt;SetNumberOfTuples(3);<br />&gt;     Array-&gt;InsertTuple3(0, 1, 1, 1);<br />&gt;     Array-&gt;InsertTuple3(1, 2, 2, 2);<br />&gt;     Array-&gt;InsertTuple3(2, 3, 3, 3);<br />&gt; <br />&gt;     // Set up the triangle object<br />&gt;     Triangle-&gt;GetPointIds()-&gt;SetId(0, 0);<br />&gt; <br />&gt;     Triangle-&gt;GetPointIds()-&gt;SetId(1, 1);<br />&gt;     Triangle-&gt;GetPointIds()-&gt;SetId(2, 2);<br />&gt; <br />&gt;     // Set up the unstructured grid object<br />&gt;     Grid-&gt;Allocate(1, 1);<br />&gt;     Grid-&gt;InsertNextCell(Triangle-&gt;GetCellType(), Triangle-&gt;GetPointIds());<br />&gt; <br />&gt;     Grid-&gt;SetPoints(Points);<br />&gt;     Grid-&gt;GetPointData()-&gt;SetTCoords(Array);<br />&gt; <br />&gt;     // Set up the mapper<br />&gt;     TriangleMapper-&gt;SetInput(Grid);<br />&gt; <br />&gt;     // Set up the Actor<br />&gt;     aTriangle-&gt;SetMapper(TriangleMapper);<br />&gt; <br />&gt; <br />&gt;     aTriangle-&gt;GetProperty()-&gt;SetColor(1.0, 1.0, 0.0);// Yellow<br />&gt; <br />&gt;     // Add it to the scene<br />&gt;     Renderer-&gt;GetRenderer()-&gt;AddActor(aTriangle);<br />&gt; <br />&gt; After I create the triangle, I call an update method that does this:<br />&gt; <br />&gt; <br />&gt;     Points-&gt;SetPoint(0, Node1.X, Node1.Y, Node1.Z);<br />&gt;     Points-&gt;SetPoint(1, Node2.X, Node2.Y, Node2.Z);<br />&gt;     Points-&gt;SetPoint(2, Node3.X, Node3.Y, Node3.Z);<br />&gt; <br />&gt;     // Re-render the scene<br />&gt;     Renderer-&gt;GetRenderer()-&gt;Render();<br />&gt; <br />&gt; <br />&gt; The first time I call this update function, the triangle is displayed correctly.  Subsequent calls, however, do not update the position of the triangle.  I tried changing the update method to include most of the procedure for creating the object, but I still get no change in the object&#39;s position.  Is there something I can do to update the position of the triangle after it has been created?  Do you know why my update function works the first time but has no effect after the first time it is called?<br />&gt; <br />&gt; <br />&gt; Thanks for your help!<br />&gt; <br />&gt; -Kerry<br />&gt; <br />&gt; On Wed, Jan 7, 2009 at 9:31 PM, Gerrick Bivins gbivins@objectreservoir.com&gt; wrote:<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; You have to create a data set (vtkPolyData) and add the triangle as a cell and the points are specified as well.<br />&gt; <br />&gt; Look hear for an example:<br />&gt; <br />&gt; http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/DataManipulation/Python/BuildUGrid.py?root=VTK&content-type=text/plain<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; Gerrick<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; On 1/7/09 8:18 PM, &quot;Kerry Loux&quot; louxkr@gmail.com&gt; wrote:<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; Hello,<br />&gt; <br />&gt; <br />&gt; <br />&gt; For my application, I need to display a single triangle in 3-space.  The triangle is not necessarily equilateral.  What is the easiest way to create a triangle object?  I considered vtkTriangle and vtkTriangleStrip, but I&#39;m not clear on how to assign the locations of the vertices.  Also, as far as I can tell the vtkTriangle (and vtkCell) classes don&#39;t have any kind of GetOutput() function.  How do you map these classes to an actor?  I was hoping for some kind of primitive shape source, similar to vtkCyliderSource or vtkSphereSource, but there doesn&#39;t seem to be any.<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; I&#39;m still using the 5.0.4 release.<br />&gt; <br />&gt; <br />&gt; <br />&gt; Thanks for your advice!<br />&gt; <br />&gt; <br />&gt; <br />&gt; -Kerry<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; _______________________________________________<br />&gt; <br />&gt; This is the private VTK discussion list.<br />&gt; <br />&gt; Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br />&gt; <br />&gt; Follow this link to subscribe/unsubscribe:<br />&gt; <br />&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt;