[vtkusers] vtkLookupTable crashes in release mode. VTK8.1.1

Vipul Pai Raikar vpai at g.clemson.edu
Wed Sep 26 10:16:38 EDT 2018


Hi Andy,

Here is the minimum code that works well in setting up a gray colormap.

vtkSmartPointer<vtkColorTransferFunction> colorTxFn=
    vtkSmartPointer<vtkColorTransferFunction>::New();
  for (auto i = 0; i < 256; ++i) {
    // colorTxFn->AddRGBPoint(i, i/255.0,i/255.0,i/255.0);
    colorTxFn->AddHSVPoint(i, 0, 0, i / 255.0);
  }
  colorTxFn->SetAlpha(1);

HTH

Vipul



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list