<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I've been stuck with the following for a while. <br>
<br>
Given is a table (using the TableToPoints filter) of X,Y,Z,N (4
columns, 3 coordinates and the density at those coordinates) over
time. I would like to connect those points and color the tube
according to the density, N, at that point. <br>
<br>
Using the Programmable Filter I managed to connect the points as
follows:<br>
<meta name="qrichtext" content="1">
<pre style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" font-family:'Courier New,courier';">pdi </span><span style=" font-family:'Courier New,courier'; color:#666666;">=</span><span style=" font-family:'Courier New,courier';"> </span><span style=" font-family:'Courier New,courier'; color:#008000;">self</span><span style=" font-family:'Courier New,courier'; color:#666666;">.</span><span style=" font-family:'Courier New,courier';">GetPolyDataInput()</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">pdo </span><span style=" font-family:'Courier New,courier'; color:#666666;">=</span><span style=" font-family:'Courier New,courier';"> </span><span style=" font-family:'Courier New,courier'; color:#008000;">self</span><span style=" font-family:'Courier New,courier'; color:#666666;">.</span><span style=" font-family:'Courier New,courier';">GetPolyDataOutput()</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">numPoints </span><span style=" font-family:'Courier New,courier'; color:#666666;">=</span><span style=" font-family:'Courier New,courier';"> pdi</span><span style=" font-family:'Courier New,courier'; color:#666666;">.</span><span style=" font-family:'Courier New,courier';">GetNumberOfPoints()</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">pdo</span><span style=" font-family:'Courier New,courier'; color:#666666;">.</span><span style=" font-family:'Courier New,courier';">Allocate()</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-weight:600; color:#008000;">for</span><span style=" font-family:'Courier New,courier';"> i </span><span style=" font-family:'Courier New,courier'; font-weight:600; color:#aa22ff;">in</span><span style=" font-family:'Courier New,courier';"> </span><span style=" font-family:'Courier New,courier'; color:#008000;">range</span><span style=" font-family:'Courier New,courier';">(</span><span style=" font-family:'Courier New,courier'; color:#666666;">0</span><span style=" font-family:'Courier New,courier';">, numPoints</span><span style=" font-family:'Courier New,courier'; color:#666666;">-1</span><span style=" font-family:'Courier New,courier';">):</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';"> points </span><span style=" font-family:'Courier New,courier'; color:#666666;">=</span><span style=" font-family:'Courier New,courier';"> [i, i</span><span style=" font-family:'Courier New,courier'; color:#666666;">+1</span><span style=" font-family:'Courier New,courier';">]</span></pre>
<pre style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';"> pdo</span><span style=" font-family:'Courier New,courier'; color:#666666;">.</span><span style=" font-family:'Courier New,courier';">InsertNextCell(</span><span style=" font-family:'Courier New,courier'; color:#666666;">3</span><span style=" font-family:'Courier New,courier';">, </span><span style=" font-family:'Courier New,courier'; color:#666666;">2</span><span style=" font-family:'Courier New,courier';">, points)</span><!--EndFragment--></pre>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>Unfortunately I do not manage to include the density component.
<br>
<br>
It would be awesome if somebody could help me out.<br>
<br>
Thank you!<br>
<br>
Jan<br>
</body>
</html>