Hello Users,<br><br>I have an unstructured grid which contains
triangular elements. Now when it is displayed on the screen, user will
do some changes to the cells. One such requirement is to change the
common edge between two triangles. For example, if a common edge between
two triangles is vertical, then on clicking, the common edge should
become vertical. That means the point ids of both cells must be changed.
<br>
<br>So I have been trying to change the point ids of the cells of an
unstructured grids. But the changes are not reflected back on the render
window. Here is what I am doing:<br><br>vtkCell *selCell = uGrid->GetCell( sel_id );<br>
<br>for( int i =0; i < 3; i++ )<br>{<br> selCell->GetPointIds()->SetId(<div id=":ut">i, new_val(i) );<br>}<br><br>selCell->Modified();<br><br>The above code will be executed twice( for two adjacent triangles )<br>
<br>this->uGrid->Modified();<br>
this->gridActor->Modified();<br><br>Any more changes need to be
done inorder to reflect the changes ? How can the values of cell's
pointids be changed and at the same time, be reflected back in the
actor.?<br><br>
Thanks<br><br>Regards<br><font color="#888888">Rakesh Patil</font></div>