<div dir="ltr">By the way, if you want to contour all of the blocks, the following is the simple way to go:<div><br></div><div><div># Read Exodus Data</div><div>reader = vtk.vtkExodusIIReader()</div><div>reader.SetFileName('cube_out.e')</div><div>reader.UpdateInformation()</div><div>reader.SetTimeStep(0)</div><div>reader.SetAllArrayStatus(vtk.vtkExodusIIReader.NODAL, 1)</div><div><br></div><div># Contours (these do not show up in my rendered image)</div><div>contours = vtk.vtkContourFilter()</div><div>contours.SetInputConnection(reader.GetOutputPort())</div><div>contours.SetInputArrayToProcess(0, 0, 0, 0, "u")</div><div>contours.SetNumberOfContours(1)</div><div>contours.SetValue(0, 0.5)</div><div><br></div><div>contMapper = vtk.vtkCompositePolyDataMapper2()</div><div>contMapper.SetInputConnection(contours.GetOutputPort())</div><div>contMapper.SetScalarVisibility(False) # colored contours</div><div>contMapper.SetScalarRange(scalar_range)</div></div><div><br></div><div># actor, renderer etc. here</div><div><br></div><div>Note the use of the vtkCompositePolyDataMapper2 instead of the regular vtkPolyDataMapper.</div><div><br></div><div>Best,</div><div>-berk</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 2:22 PM, Slaughter, Andrew E <span dir="ltr"><<a href="mailto:andrew.slaughter@inl.gov" target="_blank">andrew.slaughter@inl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">I am unable to have contours of 3D data show up using Python bindings (VTK 6.3) on OSX. I attached an example exodus file and script and would appreciate any help to get contours working.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I also include a screenshot from Paraview of what I am expecting the output of my script to resemble.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Andrew</div></div>
<br>_______________________________________________<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="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>