[vtkusers] BoxWidget Problem

David Doria daviddoria at gmail.com
Wed Dec 7 08:43:03 EST 2011


On Wed, Dec 7, 2011 at 7:47 AM, Matheus Brasileiro
<matheus.brasileiro at gmail.com> wrote:
> Hi,
>
> I'm using vtkBoxWidget with vtkPlanes as implicit function to select a part
> of a 3D model.
> And i'm doing that very similar as we can find in the examples given.
> It uses vtkClipPolydata then vtkPolydataMapper and creates a new actor that
> represents the selection.
> Ok ... that is working fine, but with this new actor created I'm can not
> change color property. Its aways show in blue color and I can't figure out
> why, since I can change another properties such as visibility an
> opacity. I've tried all color properties in vtkProperty from the new actor.
>
> I run the examples in tcl and it works, the color of the new actor created
> can be changed.
>
> I'm implementing the code in C++.
>
> Any clues? Have anyone been through it?
>
> Thanks all
>
> Matheus Brasileiro

Try mapper->ScalarVisibilityOff ()

David



More information about the vtkusers mailing list