[vtkusers] Scalars read from file only accepted if 0.0-1.0 even though int specified
Amy Henderson
amy.henderson at kitware.com
Fri Mar 26 11:16:34 EST 2004
Another possibility: Are you updating the polydata reader before you ask
its output for the scalar range?
- Amy
At 11:11 AM 3/26/2004, Christopher M. Navarro wrote:
>Are you setting the scalar range of your mapper? By defaul it is 0 - 1,
>maybe that's the problem you're having?
>
>-chris
>
>On Fri, 26 Mar 2004, jarv0075 wrote:
>
> > I've tracked it down to the polydata reader always returning a scalar range
> > of 0 1. Do I specify the range somewhere in the file?
> >
> > Here is the data file:
> >
> > ---------------------------------------------------------------------------
> > ----------
> >
> > # vtk DataFile Version 2.0
> > Cube example
> > ASCII
> > DATASET POLYDATA
> >
> > POINTS 8 float
> > 0.0 0.0 0.0
> > 1.0 0.0 0.0
> > 1.0 1.0 0.0
> > 0.0 1.0 0.0
> > 0.0 0.0 1.0
> > 1.0 0.0 1.0
> > 1.0 1.0 1.0
> > 0.0 1.0 1.0
> >
> > POLYGONS 6 30
> > 4 0 1 2 3
> > 4 4 5 6 7
> > 4 0 1 5 4
> > 4 2 3 7 6
> > 4 0 4 7 3
> > 4 1 2 6 5
> >
> > CELL_DATA 6
> > SCALARS fissure int 1
> > LOOKUP_TABLE super
> > 1
> > 2
> > 3
> > 4
> > 5
> > 6
> >
> >
> > LOOKUP_TABLE super 7
> > 0.00 0.00 0.90 1.0
> > 0.31 0.01 0.01 1.0
> > 0.02 0.02 0.02 1.0
> > 0.03 0.43 0.03 1.0
> > 0.04 0.04 0.64 1.0
> > 0.04 0.74 0.04 1.0
> > 0.84 0.04 0.04 1.0
> >
> >
> > ---------------------------------------------------------------------------
> > ------
> >
> >
> > On 26 Mar 2004, Amy Henderson wrote:
> > > Please post your data file to the list. There is no way to know what's
> > > wrong with the file without seeing it.
> > >
> > > - Amy
> > >
> > > At 10:26 AM 3/26/2004, jarv0075 wrote:
> > > >
> > > >I've followed the example file formats to the T even (copying the Cube
> > > >example out of file-formats.pdf) but nothing will work unless it's float
> > > >0.0-1.0.
> > > >
> > > >Any idea why this is happening?
> > > >
> > > >_______________________________________________
> > > >This is the private VTK discussion list.
> > > >Please keep messages on-topic. Check the FAQ at:
> > > ><http://public.kitware.com/cgi-bin/vtkfaq>
> > > >Follow this link to subscribe/unsubscribe:
> > > >http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list