[vtkusers] BoxWidget Problem

Matheus Brasileiro matheus.brasileiro at gmail.com
Wed Dec 7 13:49:18 EST 2011


David,

That's precisely what I was missing!

You solve my problem, thank you very much.

Best regards

Matheus Brasileiro


2011/12/7 David Doria <daviddoria at gmail.com>

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111207/5e831002/attachment.htm>


More information about the vtkusers mailing list