[vtkusers] vtkLookupTable crashes in release mode. VTK8.1.1
Bill Lorensen
bill.lorensen at gmail.com
Tue Sep 25 18:48:52 EDT 2018
SetTableRange before Build()
On Tue, Sep 25, 2018, 11:46 AM Vipul Pai Raikar <vpai at g.clemson.edu> wrote:
> Hi,
>
> I am having issues creating a vtkLookupTable. I am encountering a peculiar
> issue with lookup tables when in release mode. Whenever I am trying to
> SetHueRange (or SaturationRange or ValueRange) I run into an access
> violation. But this works as expected in debug mode. Any one run into the
> same issue? Any help will be greatly appreciated.
>
> Example Code:
> vtkSmartPointer<vtkLookupTable> bwLut =
> vtkSmartPointer<vtkLookupTable>::New();
> bwLut->SetHueRange (0, 0);
> bwLut->SetSaturationRange (0, 0);
> bwLut->SetValueRange (0, 1);
> bwLut->Build();
> bwLut->SetTableRange (0, 255);
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180925/4262806c/attachment.html>
More information about the vtkusers
mailing list