Alex,<br>I will try your suggestions - using VTKActor to see difference and different frame rates.<br><br>I have one more question that&#39;s not related to rendering performance. It concerns opacity.<br><br>I was alteast expecting to see different images when I specify opacity &lt; 1 for the grid.<br>
<br>Shouldn&#39;t a transparent image look different when I render all cells (all layers) than when I render just surface cells?<br><br><br>Thanks again,<br>Bhanu<br><br><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 4:49 PM, Alex Malyushytskyy <span dir="ltr">&lt;<a href="mailto:alexmalvtk@gmail.com" target="_blank">alexmalvtk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LOD (level of details)  technique consists of run time assessment of<br>
performance and building a special model which will be used in certain<br>
circumstances and on the one hand would look as close as possible to<br>
the original, but on another hand allows achieve desired or better<br>
performance.<br>
That what LOD actor does, crude models will be silently created and<br>
displayed during rotation or when actor is moved.<br>
<br>
Now assume there are 2 model - lets say 1st is your unstructured grid,<br>
another is result of dataSetSurfaceFilter.<br>
Since both are using LOD actors, the following might happen:<br>
<br>
1st model is found to be too big to be displayed and as a result crude<br>
model with N1 number of nodes is created and displayed<br>
2nd model is found to be too big to be displayed and as a result crude<br>
model with N2 number of nodes is created and displayed<br>
or it is small enough , so it is displayed as is (but lets say still<br>
have N2 nodes)<br>
<br>
Now N1 might be mostly the same as N2.<br>
And you see no difference in performance during transition or rotation.<br>
Basically this means that LOD actor does his job well enough.<br>
I bet if you were using regular actors you would see a huge<br>
performance increase.<br>
<br>
If you need further performance you may just specify different frame rate.<br>
>From <a href="http://www.vtk.org/doc/release/4.0/html/classvtkLODActor.html" target="_blank">http://www.vtk.org/doc/release/4.0/html/classvtkLODActor.html</a>:<br>
<br>
&quot;To control the frame rate, you typically set the<br>
vtkRenderWindowInteractor DesiredUpdateRate and StillUpdateRate. This<br>
then will cause vtkLODActor to adjust its LOD to fulfill the requested<br>
update rate.<br>
For greater control on levels of detail, see also vtkLODProp3D. That<br>
class allows arbitrary definition of each LOD.<br>
&quot;<br>
<br>
Hope this helps,<br>
<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Tue, Apr 2, 2013 at 2:18 PM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt; wrote:<br>
&gt; Alex,<br>
&gt;<br>
&gt; To be specific in one of my cases,  No. of surfaces rendered were reduced<br>
&gt; from 6163542 to 373626 assuming grid has hexahedrons each with 6 surfaces. I<br>
&gt; got the number 373626 by doing<br>
&gt;<br>
&gt; dataSetSurfaceFilter-&gt;GetOutput()-&gt;GetNumberOfCells()<br>
&gt;<br>
&gt; Thats a significant reduction of number of surfaces. These are rendered<br>
&gt; using VTKLODActor.<br>
&gt;<br>
&gt; Can you please explain what you mean by &quot;actually shown primitives during<br>
&gt; rotation&quot;. What are the shown primitives?<br>
&gt;<br>
&gt; I am just adding the output of the dataSetSurfaceFilter to a<br>
&gt; vtkDataSetMapper and then to a vtkLODActor.<br>
&gt;<br>
&gt; All I know if no. of surfaces are reduced. Do I need to do/check something<br>
&gt; else?<br>
&gt;<br>
&gt; If you need something specific to answer more specifically, I can provide<br>
&gt; the details. It would be a great help.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Bhanu<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt;<br>
&gt; Date: Tue, Apr 2, 2013 at 4:03 PM<br>
&gt; Subject: Re: [vtkusers] Help with VtkDatasetsurface filter<br>
&gt; To: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; You may get only general advice asking general questions.<br>
&gt; Compare  the number of nodes/cells you are you are getting from<br>
&gt; vtkDataSetSurfaceFilter with<br>
&gt; such in the unstructured grid,<br>
&gt; Even though it may be significantly decreased in some cases, for<br>
&gt; example if LOD actors are used,  they may decrease actually shown<br>
&gt; primitives during rotation approximately to the same number and you<br>
&gt; will not see any difference in the performance.<br>
&gt;<br>
&gt; Regards,<br>
&gt;     Alex<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Apr 2, 2013 at 8:27 AM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt; wrote:<br>
&gt;&gt; Hi All,<br>
&gt;&gt; I was wondering if anyone would be kind enough to answer the following<br>
&gt;&gt; query<br>
&gt;&gt; for me.<br>
&gt;&gt;<br>
&gt;&gt; I had posted this a while back and still havent found the reason why<br>
&gt;&gt; vtkDataSetSurfaceFilter hasn&#39;t made rendering any faster. The interaction<br>
&gt;&gt; and rendering time to rotate zoom etc seem to be just the same as though I<br>
&gt;&gt; rendered all cells in the unstructured grid.<br>
&gt;&gt; The reason I chose to introduce rendering just surface cells in the first<br>
&gt;&gt; place was to make rendering faster. But I am surprised it doesnt make any<br>
&gt;&gt; difference at all :(.<br>
&gt;&gt; Any words or ideas?<br>
&gt;&gt;<br>
&gt;&gt; Thanks so much<br>
&gt;&gt; Bhanu<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Mar 11, 2013 at 4:30 PM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; One related question though. I started using Surface Filter really only<br>
&gt;&gt;&gt; for performance reasons.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I was thinking if I rendered just surface cells, the rendering and<br>
&gt;&gt;&gt; rotation etc would be must faster.<br>
&gt;&gt;&gt; However I do not find it any different than when I render all cells. What<br>
&gt;&gt;&gt; am I missing?<br>
&gt;&gt;&gt; Any reasons anyone can think of, please let me know.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Bhanu<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, Mar 11, 2013 at 4:12 PM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; David,<br>
&gt;&gt;&gt;&gt; As you suggested, I got it to work using SetGlobalIds and then<br>
&gt;&gt;&gt;&gt; retrieving<br>
&gt;&gt;&gt;&gt; that using GetGlobalIds. Many thanks for your patience and help.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -Bhanu<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Mar 6, 2013 at 11:41 AM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; David,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I am using vtk 5.2 - is it possible that this function was not defined<br>
&gt;&gt;&gt;&gt;&gt; in that version.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I get the error that SetOriginalCellIdsName is not a member of<br>
&gt;&gt;&gt;&gt;&gt; vtkDataSetSurfaceFilter   :(<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Bhanu<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Wed, Mar 6, 2013 at 10:36 AM, David E DeMarle<br>
&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Give DSF a name for the array.<br>
&gt;&gt;&gt;&gt;&gt;&gt; SetOriginalCellIdsName(&quot;idsintoDSForsomething&quot;)<br>
&gt;&gt;&gt;&gt;&gt;&gt; Then retrieve it from the output like<br>
&gt;&gt;&gt;&gt;&gt;&gt; DSF-&gt;GetOutput()-&gt;GetCellData()-&gt;GetArray(&quot;idsintoDSForsomething&quot;)<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; David E DeMarle<br>
&gt;&gt;&gt;&gt;&gt;&gt; Kitware, Inc.<br>
&gt;&gt;&gt;&gt;&gt;&gt; R&amp;D Engineer<br>
&gt;&gt;&gt;&gt;&gt;&gt; 21 Corporate Drive<br>
&gt;&gt;&gt;&gt;&gt;&gt; Clifton Park, NY 12065-8662<br>
&gt;&gt;&gt;&gt;&gt;&gt; Phone: 518-881-4909<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; On Wed, Mar 6, 2013 at 11:29 AM, Bhanu Hariharan &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; David,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I had turned on PassThroughCell. But I do not know how to access the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; new Ids array after the fact.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; VTK Doc says something about a &#39;OrginalCellIds&#39; but I am not sure how<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; to access this.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; So I extracted the output of DSF to a vtkPolyData but still cant<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; figure out how to get to that new Ids array.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Any help with that is really appreciated.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I will try your other suggestion in the meantime.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Bhanu<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Wed, Mar 6, 2013 at 9:25 AM, David E DeMarle<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Sorry for the confusion, it has been a long time since I added that<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; code the DataSetSurfaceFilter. Turning PassThroughCell/PointIds in<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; fact<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; generates a new Ids array, which you can retrieve after the fact to<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; do the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; lookups into the data that is input to the DSF and extract<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; particular<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; cells/points by their offset (n&#39;th cell in the cell array, n&#39;th<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; point in the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; point array)<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; However I still recommend making your own ids array and using that<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; instead of PassThrough. vtkIdFilter will generate them for you. The<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; array<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; marked as the active global ids array is treated specially by most<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; filters<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; in that they try to preserve it across operations (including<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; threshold and<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; DSF). We added this to VTK a few years ago specifically for this<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; case of<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; finding out where particular result values come from (and in<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; particular for<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; surface selection). So the Threshold and surface filter will push<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; globalIDS<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; forward just fine. Once you get a result, grab the active globaIDs<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; array,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; look for the values in it, and look them up in the original data.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; extract selections filter will do the job of looking them up in the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; original<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; data and pulling them out as a new dataset.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; David E DeMarle<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Kitware, Inc.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; R&amp;D Engineer<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 21 Corporate Drive<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Clifton Park, NY 12065-8662<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Phone: 518-881-4909<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Wed, Mar 6, 2013 at 10:02 AM, Bhanu Hariharan<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; David,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks for replying. However I have a doubt.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Are you suggesting the VTKUnstructuredgrid should have an globalids<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; array? Is that what the member is called - globalIds? I actually<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; pass<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; VTKUnstructuredgrid  to a VTKThreshold filter and then pass that<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; filter to<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; VTKdatasetsurfacefilter.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Perhaps you can post a couple lines of code. That would be very<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; helpful.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Bhanu<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Mar 5, 2013 at 6:55 PM, David E DeMarle<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The input data should have a globalids array containing a unique<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; value for each cell. If it does, extract will preserve it. After<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; extraction, use that array in the polydata to do the look up to<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; the original<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; cell in the unstructured grid.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Mar 5, 2013 6:00 PM, &quot;Bhanu Hariharan&quot; &lt;<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hi All,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I need some help doing the following. Please could one of you<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; guide me on how.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I use a vtkDataSetSurfaceFilter on VTKUnstructuredGrid to render<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; skin of that grid. That works fine and I can see the number of<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; surfaces<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; shown by grabbing the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; dataSetSurfaceFilter-&gt;GetOutput()-&gt;GetNumberOfCells().<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I need a way to map the surface back to the original cell id.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; That<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; is if I have 2 cells and I render just skin, number of surfaces<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; rendered are<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 10. I need to be able to pick on any of these 10 surfaces and map<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; them back<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; to either of the the 2 grid cells.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/doc" target="_blank">http://www.vtk.org/doc</a> says :<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; If PassThroughCellIdsOn is 1, then the output polygonal dataset<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; will have a celldata array that holds the cell index of the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; original 3D cell<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that produced each output cell. This is useful for cell picking.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I turned the PassThroughCellIds On and I have UseStrips turned<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; off.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Then I did<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; vtkPolyData *surfacePolyData = dataSetSurfaceFilter-&gt;GetOutput();<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; But I do not see how I can access that celldata array that holds<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; the original 3D cells for the surfaces.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Please can anyone advise on how.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks in advance.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Bhanu<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
</div></div></blockquote></div><br>