vtkLookupTable: Bad table range
See original GitHub issueHi, thank you for your efforts on this tool!
I am trying to accomplish functionality that combines slider with color map. Part of my code is list below:
def slider(widget, event):
value = widget.GetRepresentation().GetValue()
my_mesh.pointColors(some_kind_of_values, vmin = value, cmap = 'jet')
plotter.addSlider2D(slider,xxxxxx)
But the problem is that when the slider value exceeds some threshold, it will bump into errors, and the error message is list below:
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd865ae2e20): Bad table range: [0.963639, 0.892214]
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd865ae2e20): Bad table range: [0.963639, 0.892214]
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd86411f1e0): Bad table range: [0.957363, 0.892214]
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd86411f1e0): Bad table range: [0.957363, 0.892214]
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd85d586b40): Bad table range: [0.955794, 0.892214]
ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd85d586b40): Bad table range: [0.955794, 0.892214]
I wonder how I can handle this problem. Any suggestions or examples will be helpful. Thank you in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
vtkLookUpTable. Bad table range: [0, -1] - 3D Slicer Community
Operating system: macOS 10.14.6. Slicer version: 4.10.2. Hello,. I used a vtkLookUpTable to color a vtkPolyData like this :
Read more >The vtkLookupTable::SetTable() results in bad out-of-range ...
It was reported that when the SetTable() method was used to provide an array (4-component unsigned char) for use as the lookup table, ......
Read more >vtkLookupTable Class Reference - VTK
The color table can be created by direct insertion of color values, or by specifying a hue, saturation, value, and alpha range and...
Read more >Problem with add_overlay · Issue #193 · nipy/PySurfer - GitHub
... and would like to show both positive and negative parts. ... line 144 vtkLookupTable (0xcc23d70): Bad table range: [1e+299, -1e+299].
Read more >vtkLookupTable errors after converting to .vti volume
ERROR: In C:\Apps\vmtk-build\VTK\Common\Core\vtkLookupTable.cxx, line 144. vtkLookupTable (0000000008DD1CC0): Bad table range: [1e+299, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok thanks, never mind. Actually I don’t think this problem can be fixed, or even this is not a problem at all. I think it has something to do with my 3D model so that some places cannot be ‘lit up’.
Thank you so much for your quick responses and helpful advice. Have a good day!
Uhm, you maybe should post a screenshot… maybe you have wrong normals to faces (?)