[vtkusers] Iso band coloring

Jothy jothybasu at gmail.com
Thu May 13 16:23:51 EDT 2010


Hi David,

Are you able to attach the values of the contours to the
ContourEdges.If so could you add an example to wiki.

Thanks,

Jothy

On Thu, May 13, 2010 at 5:19 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Thu, May 13, 2010 at 10:38 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> Try this after bf->Update();
>>  bf->GetOutput(1)->GetPointData()->SetScalars(bf->GetOutput()->GetPointData()->GetScalars());
>> Later:
>> edgeMapper->SetScalarRange( range[0], range[1]);
>
>
> Very cool, thanks.
>
> Also, this is necessary to see the bands properly in colorActor:
>
> bf->GetOutput(0)->GetPointData()->SetActiveScalars("Scalars");
>
> David
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list