Hi everyone,<br><br>I have a bunch of points that are connected by lines to indicate a path. But its not possible to determine the <br>direction of the path from these lines. <br><br>Is there a way to draw lines that are opaque on one end, fade off and are transparent at the other in VTK?
<br>Or draw lines that are thicker on one end? Or have a color gradient?<br><br>Here's a snippet of my code. 'Pts' holds the set of points that are to be connected by lines. Is there a way to <br>add transparency or color information for each cell (a line in this case) separately?
<br><br>for (int i =0; i < numPointsInPath-1; i++)<br>{<br> cellArray->InsertNextCell(2);<br> cellArray->InsertCellPoint(i);<br> cellArray->InsertCellPoint(i+1);<br>}<br>polyData->SetPoints(Pts);
<br>polyData->SetLines(cellArray);<br> <br><br>Any help would be greatly appreciated.<br><br>Shriram<br>