[vtkusers] Iso band coloring

Bill Lorensen bill.lorensen at gmail.com
Thu May 13 10:38:09 EDT 2010


Try this after bf->Update();
 bf->GetOutput(1)->GetPointData()->SetScalars(bf->GetOutput()->GetPointData()->GetScalars());
Later:
edgeMapper->SetScalarRange( range[0], range[1]);



On Thu, May 13, 2010 at 9:08 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Thu, May 13, 2010 at 8:48 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> Try adding,
>> colorMapper->SetScalarRange( range[0], range[1]);
>>
>> I think you'll like it,
>>
>> Bill
>
> I swear I tried that before... of course it worked this time.
>
> What about attaching the values of the contours to the ContourEdges
> output (so that then the contours could be displayed with the same
> color scheme)?
>
> Thanks,
>
> David
>



More information about the vtkusers mailing list