[vtkusers] Continuous colors

Naim naim at electromagneticworks.com
Fri Aug 18 15:37:28 EDT 2006


Hi Randall,

Thanks a lot for the help.

 

Naim Himrane

ElectromagneticWorks Inc.

 

  _____  

From: Randall Hand [mailto:randall.hand at gmail.com] 
Sent: August 18, 2006 12:11 PM
To: Naim; VTK Users
Subject: Re: [vtkusers] Continuous colors

 

The problem isn't in your filters, it's in your Mapper.. L?ook at
vtkMapper's InterpolateColorsBeforeMapping (
http://www.vtk.org/doc/nightly/html/classvtkMapper.html#9e0262837bb18752277a
6a9c7b972583 ) .. You probably want to InterpolateColorsBeforeMappingOff, so
that it will use the 1D Texture.

On 8/18/06, Naim < <mailto:naim at electromagneticworks.com>
naim at electromagneticworks.com> wrote:

Hi all,

 

I used an unstructured grid to plot a continuous fringe (see
ContinuousFringe.jpg) below. The graduation of colors doesn't look smooth in
the circled area, it goes from red to blue right away and not as suppose to
be gradient from red to blue. I used this portion of code to plot my
unstructured grid:

 

// convert from unstructuredGrid to PolyData

vtkGeometryFilter *extract = vtkGeometryFilter::New();

      extract->SetInput(m_pUnstructuredGrid);

      extract->GetOutput()->ReleaseDataFlagOn();

 

vtkPolyDataNormals *normals = vtkPolyDataNormals::New(); // none

      normals->SetInputConnection(extract->GetOutputPort());

      normals->SetFeatureAngle(60.0);

      normals->GetOutput()->ReleaseDataFlagOn();

 

vtkStripper *stripper = vtkStripper::New(); // none

      stripper->SetInputConnection(normals->GetOutputPort());

Please take a look at the attached file and let me know if  i am using the
right filters to do my plot.

Thanks.

 

Naim Himrane 

ElectromagneticWorks Inc.

 


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers 








-- 
----------------------------------------
Randall Hand
Visualization Scientist
ERDC MSRC-ITL 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060818/425a7c15/attachment.htm>


More information about the vtkusers mailing list