<div dir="ltr"><div class="gmail_quote"><div>Hi James,</div><div><br></div><div>Please see my responses inlined below.</div><div dir="ltr"><br></div><div dir="ltr">On Mon, Jul 2, 2018 at 5:21 PM James Robinson <<a href="mailto:j.robinson@kepler-systems.com">j.robinson@kepler-systems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Dear All,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am trying to use VTK in its Activiz format (version 5.8.0) in C#. It is working reasonably well 9very well in places) – but I am trying to do some visualisation of vector data. I have been trying for a week now (or more) doing online searches for sample code etc. to no avail.</p></div></div></blockquote><div><br></div><div>Have you searched through the VTK wiki? <a href="https://lorensen.github.io/VTKExamples/site/Cxx/">https://lorensen.github.io/VTKExamples/site/Cxx/</a> Some of the best examples for learning VTK are there. You may have to translate from C++ or Python to C#, but that shouldn't be too bad. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal"><u></u></p><p class="MsoNormal">Ideally what I would like to achieve was described in this article on ParaView: <a href="https://blog.kitware.com/paraview-technique-curved-and-nicely-spaced-arrow-glyphs/" target="_blank">https://blog.kitware.com/paraview-technique-curved-and-nicely-spaced-arrow-glyphs/</a> Beautiful work, but the description of how it was achieved is somewhat cryptic when viewed from the perspective of trying to replicate it in Activiz.</p></div></div></blockquote><div><br></div><div>That visualization is indeed possible with VTK - that is what ParaView is using to generate it. While you can easily generate Python code that uses the ParaView Python API to reproduce the technique, there is nothing that generates plain VTK code to reproduce it, I'm afraid.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal">If I could get one of the following visualisation tools developed it would be fit for my purpose:<u></u><u></u></p><p class="MsoNormal">1. Ideal – as per the link above.<u></u><u></u></p><p class="MsoNormal">2. Flow arrow glyphs that are coloured and scaled according to the vector field magnitude.</p></div></div></blockquote><div><br></div><div>Examples (searched for vtkGlyph3D on the wiki examples page)</div><div>* <a href="https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/OrientedGlyphs/">https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/OrientedGlyphs/</a><br></div><div>* <a href="https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CarotidFlowGlyphs/">https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CarotidFlowGlyphs/</a> </div><div>* <a href="https://raw.githubusercontent.com/lorensen/VTKExamples/master/src/Testing/Baseline/Cxx/Visualization/TestCurvatureBandsWithGlyphs.png">https://raw.githubusercontent.com/lorensen/VTKExamples/master/src/Testing/Baseline/Cxx/Visualization/TestCurvatureBandsWithGlyphs.png</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal">3. Minimum: Standard streamtracer lines with colour according to vector magnitude.</p></div></div></blockquote><div><br></div><div><div style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Examples (searched for vtkStreamTracer on the wiki page):</div><div style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">* <a href="https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/BluntStreamlines/">https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/BluntStreamlines/</a><br></div><div style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">* <a href="https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CarotidFlow/">https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CarotidFlow/</a></div><div style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">* <a href="https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/Kitchen/">https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/Kitchen/</a></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal">For test purposes I am reading in a set of data points in 3D with pressure values (a history) for each point. I am meshing the points into a linear tet mesh (using VTK class - <span style="font-size:9.5pt;font-family:Consolas;color:black">vtkDelaunay3D</span>) and then extract the resulting mesh as a vtkUnstructuredGrid. Then I am using the pressure field to calculate a pressure gradient at the nodes (points) of the tet mesh. As the pressure data has a set of values for a series of timesteps, the resulting gradient values are also per node per timestep. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I associate the pressure data and the resulting gradient data with the vtkUnstructuredGrid (called <span style="font-size:9.5pt;font-family:Consolas;color:black">_vtkUSGrid</span>) as follows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> AddDataSet(RiverDataSet dataset)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">switch</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> (dataset.Type) </span><span style="font-size:9.5pt;font-family:Consolas;color:green">// POINT or CELL</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">case</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"POINT"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _vtkUSGrid.GetPointData().AddArray(dataset.Values);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">case</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"CELL"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _vtkUSGrid.GetCellData().AddArray(dataset.Values);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _vtkUSGrid.Update();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _vtkUSGrid.Modified();<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Where dataset is a class that I have written to manage various data sets. Note all data sets (scalars and vector) are added in this manner. The resulting scalar (e.g. pressure) visualisation works perfectly. In addition, I manage to extract the streamtracers from the data and can see the evolution of that vector field in time. The vtkStreamTracer (which I refer to as streamlines in the code) are created as follows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">private</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> CreateStreamLine()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer = </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> vtkStreamTracer();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetInput(_USGrid);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _FlowPlaneSource = </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> vtkPlaneSource();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetSourceConnection(_FlowPlaneSource.GetOutputPort());<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">double</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> Initial_and_minimum_step = 0.05; </span><span style="font-size:9.5pt;font-family:Consolas;color:green">// 5% of cell size</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetInitialIntegrationStep(Initial_and_minimum_step);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetMaximumPropagation(100);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetIntegrationDirectionToBackward();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetIntegratorTypeToRungeKutta45();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamTracer.SetComputeVorticity(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">true</span><span style="font-size:9.5pt;font-family:Consolas;color:black">);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//vtkContourFilter contourFilter = new vtkContourFilter();</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//contourFilter.SetInputArrayToProcess(StreamTracer.)</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//contourFilter.SetInputConnection(StreamTracer.GetOutputPort());</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamTube = </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> vtkTubeFilter();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamTube.SetInput(StreamTracer.GetOutput());<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//_StreamTube.SetInput(contourFilter.GetOutput());</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamTube.SetNumberOfSides(12);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamTube.SetVaryRadiusToVaryRadiusByVector();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> vtkPolyDataMapper StreamLineMapper = vtkPolyDataMapper.New();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamLineMapper.SetInput(_StreamTube.GetOutput());<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamLineMapper.ScalarVisibilityOn();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamLineMapper.SetScalarModeToUsePointData();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> StreamLineMapper.SetLookupTable(_ColourMap_LUT);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor = </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> vtkActor();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.SetMapper(StreamLineMapper);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> AddActor(_StreamlineActor);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.VisibilityOff();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> CreateStreamlinePointLocator();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Note that in this code I have made an attempt (but commented it out) to introduce contours on the streamlines as a first step to achieve the ideal objective (as stated above) – but as I can’t even get them to come out in colour the attempt at creating definite (line) contours is futile for the moment.</p></div></div></blockquote><div><br></div><div>contourFilter.SetInputArrayToProcess() takes some port and connection information along with a field type (point or cell) and a character string containing the name of the array on which you want the filter to operate. See <a href="https://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html#a42a55ca2c277aecc909ad592d12978aa">https://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html#a42a55ca2c277aecc909ad592d12978aa</a> for details. I believe you want the point array named "IntegrationTime" produced by the vtkStreamTracer.</div><div><br></div><div>I hope that is helpful.</div><div><br></div><div>Cheers,</div><div>Cory</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-IE"><div class="gmail-m_-2254623929058890379WordSection1"><p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Each time I change timestep I set the data upon which the stream lines are to be calculated to the appropriate set of gradients:<u></u><u></u></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:green">//===========================================================================</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">private</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> UpDate_FlowActor(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> Type, </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">bool</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> bRender = </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">false</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">switch</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> (Type)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">case</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"NONE"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">: </span><span style="font-size:9.5pt;font-family:Consolas;color:green">// No data set visible</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.VisibilityOff();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">case</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"POINT"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _USGrid.GetPointData().SetActiveVectors(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().SelectColorArray(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().GetInput().GetPointData().SetActiveVectors(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:green">// _StreamlineActor.GetMapper().ColorByArrayComponent(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>, 0);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().SetColorModeToMapScalars();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">case</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:rgb(163,21,21)">"CELL"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _USGrid.GetCellData().SetActiveVectors(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().SelectColorArray(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().GetInput().GetCellData().SetActiveVectors(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:green">// _StreamlineActor.GetMapper().ColorByArrayComponent(_<a href="http://DataSet.CurrentVectorDataSet.Name" target="_blank">DataSet.CurrentVectorDataSet.Name</a>, 0);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.GetMapper().SetColorModeToMapScalars();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">default</span><span style="font-size:9.5pt;font-family:Consolas;color:black">:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.VisibilityOff();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">break</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> _StreamlineActor.Modified();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> (bRender)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> ReRender();<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any advice would be most welcomed. (And I can supply any additional code – but the overall project is too large to share).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Many thanks in advance,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Kind regards,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Jim Robinson PhD<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div></div>