[vtkusers] Render results differ with Paraview

Cory Quammen cory.quammen at kitware.com
Wed Nov 16 23:15:40 EST 2016


Andrew,

Please add

mapper.InterpolateScalarsBeforeMappingOn()

to your script. This should get your example to render the same way
ParaView does by default.

See this blog post for more details:
https://blog.kitware.com/what-is-interpolatescalarsbeforemapping-in-vtk/

HTH,
Cory

On Wed, Nov 16, 2016 at 7:30 PM, Slaughter, Andrew E
<andrew.slaughter at inl.gov> wrote:
> I am writing a VTK python script (VTK7.0.0 on OSX) to read and render an
> ExodusII file. I am getting results that differ quite a bit from Paraview
> (4.3.1), as shown in the attached images.
>
> My python script (also attached) produces a result that is not nearly as
> smooth as Paraview.  I am likely using an incorrect filter or missing some
> setting and would appreciate if someone could assist me in improving my
> script.
>
> Thanks,
>
> Andrew
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list