[vtkusers] Symmetry questions

David Doria daviddoria+vtk at gmail.com
Mon Feb 8 13:20:43 EST 2010


On Mon, Feb 8, 2010 at 1:16 PM, Banksie <banks at wai.com> wrote:

>
> Hello again David,
>
> Thanks for the examples. One question though. I found that I could
> transform
> the data using vtkTransform to vtkTransformPolyDataFilter, then push this
> to
> a vtkMapper and finally to the vtkActor. However, if I'm applying
> subsequent
> flips out of the symmetry, this would lead me to having up to 8 actors on
> the screen to cover all aspects of a quarter symmetry model. Is this right?
> It seems a little clunky.
>
> I tried creating a series of vtkTransformPolyDataFilters and adding them to
> one vtkMapper, hoping this would do the job, but that didn't seem to work.
>
> Any thoughts?
>
> I'm looking for the ability for the user to flip out their data based on
> the
> symmetrical conditions of their model. I can go the multi vtkActor route,
> but as mentioned before I think I may be overlooking a simpler way
>
> Thanks
> Robbie
>
>
Robbie,

You can use vtkAppendPolyData (
http://www.vtk.org/Wiki/VTK/Examples/CombinePolydata) to combine the data
sets, then use only one mapper and one actor.

Give it a try and let us know if it works out.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100208/d9a581c8/attachment.htm>


More information about the vtkusers mailing list