[vtkusers] VTK too slow

Robert Mitchell robmitch at eng.uts.edu.au
Wed Jul 11 02:20:41 EDT 2001


sarah,

I'm using sphere glyphs and colouring them using the scalars associated
with the points that define their position. Using;

vtkPolyData  with vtkPoints & vtkScalars

vtkShpereSource->vtkGlyph3D->vtkPolyDataMapper->vtkActor

  m_PolyData->SetPoints(Points);
  m_PolyData->GetPointData()->SetScalars(Scalars);

  Glyph->SetInput(m_PolyData);
  Glyph->SetSource(Sphere->GetOutput());
  Glyph->ScalingOff();

  SphereMapper->SetInput(Glyph->GetOutput());
  SphereMapper->SetLookupTable(LUTable);

  m_SphereActor->SetMapper(SphereMapper);

Ive also made another vtkLookupTable and associated it with the Mapper
so that the scalar value in the lookup table gives the right colour.

Rob
--
Robert Mitchell
Faculty of Engineering
University of Technology, Sydney
+61 2 9514 2317

====================
I am trying to represent a 3D grid of cellular automata as spherical
glyphs,
but the visualization runs very slowly (I am writing the scripts in
Tcl). As
I have it written, each different colored set of spheres requires its
own
unstructured grid reader, glyphpoints, and other necessary objects. Is
there
a more efficient way to represent the data, or read in the data as
different
colors, so that my program will run faster? Thanks in advance
====================





More information about the vtkusers mailing list