[vtkusers] Avoid rendering values outside of range

Maguire, Alister Owen maguire7 at llnl.gov
Tue Sep 12 17:48:16 EDT 2017


Sorry, I meant the vtkColorTransferFunction, not the vtkVolumeProperty.

-Alister


From: "Maguire, Alister Owen" <maguire7 at llnl.gov>
Date: Tuesday, September 12, 2017 at 2:45 PM
To: "vtkusers at vtk.org" <vtkusers at vtk.org>
Subject: Avoid rendering values outside of range

Hello,

I’m using vtkSmartVolumeMapper for volume rendering within VisIt, and I’m wondering if there is a way to “ignore” particular scalar values (either anything that exists outside of a range, or even ignoring a specific value). When resampling unstructured data into structured grids, there is often empty space in the grid that is populated with a default value that exists outside of the datasets range, and I’d like for this default value to be ignored while rendering.

I see that vtkVolumeProperty has the option to set the color for values that exists outside of the range, but I don’t see an equivalent for opacity, which would be one way to handle this… Any ideas?

Best,
Alister
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170912/a935a1b9/attachment.html>


More information about the vtkusers mailing list