[vtkusers] vtkLookupTable with vtkStructuredPoints or vtkStructuredGrid : How it works ???

HIRAKI Hideaki hhiraki at lab.nig.ac.jp
Thu Feb 5 05:44:22 EST 2004


REGAT-BARREL Aurélien <arbvtk at yahoo.fr> wrote:
> Hello everybody,
> I am still trying to blank zero-value points in my vtkStrcuturedPoints. I have done it via a vtkThreshold filter but it generate a new DataSet and it is very slow.
> So I have tried to change black points opacity in the lookuptable build by the mapper but it fails.
> Here is the interesting code :
>  
>     mapper = vtkDataSetMapper()
>     mapper.SetInput( cloud )
>     mapper.SetScalarRange( cloud.GetScalarRange() )
>     lut = mapper.GetLookupTable()
>     lut.Build()
>     lut.SetTableValue( 0, 0, 0, 0, 0 )
> 
> It does nothing, why ?

mapper.SetColorModeToMapScalars() seems missing.
If your data is vtkStructuredPoints, volume rendering 
may fit more for your need.

Regards,

Hideaki Hiraki



More information about the vtkusers mailing list