[vtkusers] vtkassembly

David Doria daviddoria+vtk at gmail.com
Mon Sep 6 07:46:17 EDT 2010


On Mon, Sep 6, 2010 at 3:42 AM, Denis Martin <dm at wicam.com> wrote:
> Dear VTK users,
>
>
>
> i need some sample or explanation about using of vtkassembly.
>
> Even some sample or explanation about parent- child vtkobject.
>
>
>
> If somebody can help.
>
>
>
> Thank you

The documentation says "create hierarchies of vtkProp3Ds" but the only
thing I see to do is AddPart which seems to just make a collection,
not a hierarchy.

All of the examples simply show:

assembly = vtk.vtkAssembly()
assembly.AddPart(cylinderActor)
assembly.AddPart(sphereActor)

Can anyone explain how this is a hierarchy? I would expect to see
something like:

body = vtk.vtkAssembly()
arm = body.AddPart(armActor)
hand = arm.AddPart(bodyActor)

or something like that?

David



More information about the vtkusers mailing list