MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001121 | VTK | (No Category) | public | 2004-08-31 08:12 | 2004-09-01 10:00 |
Reporter | raphael.de_matos | ||||
Assigned To | Mathieu Malaterre | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0001121: problem with colors and redhat 9 | ||||
Description | bug in vtk-4.3.0-1.cvs20030620 When I run the following script under win xp, there is no problem. But under linux, I've got a grey scale render instead of a coloured one. import vtk reader = vtk.vtkUnstructuredGridReader() reader.SetFileName('./essai.vtk') reader.Update() lut1 = vtk.vtkLookupTable() lut1.SetHueRange(0.667, 0.0) dataMapper = vtk.vtkDataSetMapper() dataMapper.SetLookupTable(lut1) dataMapper.SetInput(reader.GetOutput()) drange = reader.GetOutput().GetScalarRange() dmin = drange[0] dmax = drange[1] dataMapper.SetScalarRange(1.2, 2.5) dataActor = vtk.vtkActor() dataActor.SetMapper(dataMapper) ren = vtk.vtkRenderer() ren.AddActor(dataActor) ren.SetBackground(1,1,1) renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) renWin.SetSize(500, 500) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) iren.Initialize() iren.Start() And the file essai.vtk : # vtk DataFile Version 3.0 2D scalar data ASCII DATASET UNSTRUCTURED_GRID POINTS 8 float 0 0 2 1 0 2 1 1 2 0 1 2 2 0 2 3 0 2 3 1 2 2 1 2 CELLS 6 24 3 0 1 2 3 0 2 3 3 1 4 2 3 4 7 2 3 4 5 7 3 5 6 7 CELL_TYPES 6 5 5 5 5 5 5 POINT_DATA 8 SCALARS temperature float 1 LOOKUP_TABLE default 1.0 2.0 2.0 1.0 3.0 4.0 4.0 3.0 | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Notes | |||||
|
|||||
|
|