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&#39;s a snippet of my code. &#39;Pts&#39; 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 &lt; numPointsInPath-1; i++)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cellArray-&gt;InsertNextCell(2);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; cellArray-&gt;InsertCellPoint(i);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; cellArray-&gt;InsertCellPoint(i+1);<br>}<br>polyData-&gt;SetPoints(Pts);
<br>polyData-&gt;SetLines(cellArray);<br> <br><br>Any help would be greatly appreciated.<br><br>Shriram<br>