vtk.js: display particular cells with alpha/transparency/opacity

Raimonds Vilums <[email protected]>
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CACGVHeDVGmzrmKr=srVwZgZY2B4jE7DdDv_HRjR=3uyaTGoq6g@mail.gmail.com>
Hi,

Is it possible to display cells with custom opacity for each cell?

Till now, I managed
1) set opacity to the actor (e.g., actor.getProperty().setOpacity(0.5))
2) color cells with solid colors, e.g:


   - vtk file contains CELL_DATA array of floats with 3 components for
   every color
   -

   mapper.setColorModeToDirectScalars();

   -

   mapper.setScalarModeToUseCellFieldData();

   -

   mapper.setColorByArrayName('my_cell_data');


But I could not find a way to set alpha/opacity/transparency for particular
cells.
Is it possible?

Regards,
Raimonds

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.