A voxel consists of 8 points.  By default, scalars for all points in a cell must pass the threshold criteria. Try setting:<br>threshold-&gt;AllScalarsOff();<br><br><br><div class="gmail_quote">On Tue, May 10, 2011 at 10:06 PM, Thommen Korah <span dir="ltr">&lt;<a href="mailto:thkorah@hotmail.com">thkorah@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div>
Hi Bill,<div><br></div><div>Thanks for the reply. I made the change as you suggested. It does something now. The resulting scene has 10-20 polygonal structures that seem to be randomly located. They definitely don&#39;t represent the data. If I replace the thresholding and geometryfilter construction with a contourfilter, everything works fine; I get a surface reconstruction of the underlying cell population generated by marching cubes. What I need now is a visualization of the actual voxels that are ON, and to convert that to a polydata. Is vtkGeometryFilter the right class for that?</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>Thanks,</div><div>Thommen<font color="#888888"><br></font><div class="hm"><br><hr>Date: Tue, 10 May 2011 19:49:13 -0400<br>Subject: Re: [vtkusers] Visualizing populated voxels<br>
From: <a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a><br>To: <a href="mailto:thkorah@hotmail.com" target="_blank">thkorah@hotmail.com</a><br>CC: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a></div>
<div><div></div><div class="h5"><br><br>Try,<br><pre style="text-indent: 0px;">vtkDataObject<span style="color: rgb(0, 0, 0);">::</span>FIELD_ASSOCIATION_POINTS<span style="color: rgb(0, 0, 0);"><br>instead of<br></span>vtkDataObject<span style="color: rgb(0, 0, 0);">::</span>FIELD_ASSOCIATION_CELLS<br>

<pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);"><br></span></pre><br></pre><br><br><div>On Tue, May 10, 2011 at 5:26 PM, Thommen Korah <span dir="ltr">&lt;<a href="mailto:thkorah@hotmail.com" target="_blank">thkorah@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote style="padding-left: 1ex;">



<div>
Hi,<div><br></div><div>I have a voxel grid (stored as vtkImageData). I would like to visualize the cells that are populated (greater than a particular threshold). I then want to convert the resulting surface into a polydata and write it as a PLY file. My code below that uses vtkThreshold followed by GeometryFilter doesn&#39;t work for some reason. Could anyone suggest a possible fix?</div>

<div><br></div><div>Thanks.</div><div>Thommen</div><div><br></div><div>
<pre style="text-indent: 0px;"><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>VtkScene<span style="color: rgb(0, 0, 0);">::</span>addVoxelSurface<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">short</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>sampleGrid<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(192, 192, 192);"> </span>isoValue<span style="color: rgb(0, 0, 0);">,</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">                              </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>dimX<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>dimY<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>dimZ<span style="color: rgb(0, 0, 0);">,</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">                              </span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(192, 192, 192);"> </span>voxX<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(192, 192, 192);"> </span>voxY<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(192, 192, 192);"> </span>voxZ<span style="color: rgb(0, 0, 0);">,</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">                              </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>minX<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>minY<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>minZ<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">)</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);">{</span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkShortArray<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>sampleData<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkShortArray<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>numSamples<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>dimX<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>dimY<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>dimZ<span style="color: rgb(0, 0, 0);">;</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampleData<span style="color: rgb(0, 0, 0);">-&gt;</span>SetArray<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>sampleGrid<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>numSamples<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">1</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampleData<span style="color: rgb(0, 0, 0);">-&gt;</span>SetNumberOfComponents<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">1</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampleData<span style="color: rgb(0, 0, 0);">-&gt;</span>SetNumberOfTuples<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>numSamples<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampleData<span style="color: rgb(0, 0, 0);">-&gt;</span>SetName<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">&quot;values&quot;</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>

<pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);"><br></span></pre>
<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Set</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">up</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">sampled</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">data</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">space</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkImageData<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>sampledSpace<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkImageData<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>SetDimensions<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>dimX<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>dimY<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>dimZ<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>SetScalarTypeToShort<span style="color: rgb(0, 0, 0);">();</span></pre>

<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>GetPointData<span style="color: rgb(0, 0, 0);">()-&gt;</span>SetScalars<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>sampleData<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>SetSpacing<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>voxX<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>voxY<span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>voxZ<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">set</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">dimensions</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">of</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">a</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">voxel</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>SetOrigin<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(0, 0, 0);">)</span>minX<span style="color: rgb(0, 0, 0);">,</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">                           </span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(0, 0, 0);">)</span>minY<span style="color: rgb(0, 0, 0);">,</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">                           </span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(128, 128, 0);">double</span><span style="color: rgb(0, 0, 0);">)</span>minZ<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span><span style="color: rgb(192, 192, 192);">       </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">set</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">lower</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">left</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">corner</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">location</span></pre>


<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkThreshold<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>threshold<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkThreshold<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>SetInput<span style="color: rgb(0, 0, 0);">(</span>sampledSpace<span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>SetInputArrayToProcess<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128);">0</span><span style="color: rgb(0, 0, 0);">,</span>vtkDataObject<span style="color: rgb(0, 0, 0);">::</span>FIELD_ASSOCIATION_CELLS<span style="color: rgb(0, 0, 0);">,</span>vtkDataSetAttributes<span style="color: rgb(0, 0, 0);">::</span>SCALARS<span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>ThresholdBetween<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">5</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128);">100</span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>Update<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);"><br></span></pre><pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkGeometryFilter<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>geomFilter<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkGeometryFilter<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>geomFilter<span style="color: rgb(0, 0, 0);">-&gt;</span>SetInput<span style="color: rgb(0, 0, 0);">(</span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>GetOutput<span style="color: rgb(0, 0, 0);">());</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>geomFilter<span style="color: rgb(0, 0, 0);">-&gt;</span>Update<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);"><br></span></pre><pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Create</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">mapper</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">and</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">actor,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">and</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">add</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">to</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">renderer</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkPolyDataMapper<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>voxelMapper<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkPolyDataMapper<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>voxelMapper<span style="color: rgb(0, 0, 0);">-&gt;</span>SetInput<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>geomFilter<span style="color: rgb(0, 0, 0);">-&gt;</span>GetOutput<span style="color: rgb(0, 0, 0);">()</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//voxelMapper-&gt;SetScalarRange(5,100);</span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>voxelMapper<span style="color: rgb(0, 0, 0);">-&gt;</span>SetScalarModeToUseCellData<span style="color: rgb(0, 0, 0);">();</span></pre>

<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//voxelMapper-&gt;SetColorModeToMapScalars();</span></pre>
<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>vtkActor<span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(192, 192, 192);"> </span>impGeoActor<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>vtkActor<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>impGeoActor<span style="color: rgb(0, 0, 0);">-&gt;</span>SetMapper<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>voxelMapper<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//impGeoActor-&gt;GetProperty()-&gt;SetColor(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">1.0,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">0,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">0</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">);</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(0, 128, 0);">//impGeoActor-&gt;GetProperty()-&gt;SetOpacity(</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">alpha</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">);</span></pre>


<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);"><br></span></pre><pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>actorId<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>addActor<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(192, 192, 192);"> </span>impGeoActor<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">);</span></pre>


<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);"><br></span></pre><pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>voxelMapper<span style="color: rgb(0, 0, 0);">-&gt;</span>Delete<span style="color: rgb(0, 0, 0);">();</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>geomFilter<span style="color: rgb(0, 0, 0);">-&gt;</span>Delete<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>threshold<span style="color: rgb(0, 0, 0);">-&gt;</span>Delete<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampledSpace<span style="color: rgb(0, 0, 0);">-&gt;</span>Delete<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span>sampleData<span style="color: rgb(0, 0, 0);">-&gt;</span>Delete<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="text-indent: 0px;"></pre>
<pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(128, 128, 0);">return</span><span style="color: rgb(192, 192, 192);"> </span>actorId<span style="color: rgb(0, 0, 0);">;</span></pre>


<pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);">}</span></pre>
<pre style="text-indent: 0px;"></pre></div>                                               </div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>                                               </div>
</blockquote></div><br>