[vtkusers] Continuous colors
Randall Hand
randall.hand at gmail.com
Fri Aug 18 12:11:21 EDT 2006
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#9e0262837bb18752277a6a9c7b972583)
.. You probably want to InterpolateColorsBeforeMappingOff, so that it
will
use the 1D Texture.
On 8/18/06, Naim <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/6dfa80b5/attachment.htm>
More information about the vtkusers
mailing list