[vtkusers] GlobalIds lost with vtkAppendPolyData
David E DeMarle
dave.demarle at kitware.com
Wed May 9 10:14:00 EDT 2012
Seems like a bug to me.
The GlobalIds concept was added to VTK long after
vtkAppendPolyData was, and the filter was never updated to treat
GlobalIds specially the way it should.
vtkAppendPolyData::ExecuteAppend() looks like the place to do so.
Feel free to submit a bug report, ideally with a small test program
that demonstrates the problem and a link to this email thread.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Wed, May 9, 2012 at 6:02 AM, Affolter Martin <martin.affolter at ntb.ch> wrote:
> Hi vtkusers,
>
>
>
> When combining two polydata (simple cubes) with vtkAppendPolyData, the
> GlobalIds, that have been set for both cubes, are removed. This is not the
> case for the scalars that I use to define the color and transparency of the
> cells.
>
>
>
> The documentation does not mention the globalIds :
>
> vtkAppendPolyData is a filter that appends one of more polygonal datasets
> into a single polygonal dataset. All geometry is extracted and appended, but
> point and cell attributes (i.e., scalars, vectors, normals) are extracted
> and appended only if all datasets have the point and/or cell attributes
> available. (For example, if one dataset has point scalars but another does
> not, point scalars will not be appended.)
>
>
>
> Are the globalIds meant to be removed or could this be a bug? Are there
> alternative ways of combining polydata without the loss of the globalIds?
>
>
>
> Regards,
>
> Martin Affolter
> Dipl. Ing FH
> Wissenschaftlicher Mitarbeiter
> ___________________________________________
> NTB Interstaatliche Hochschule für Technik Buchs
> Institut für Ingenieurinformatik
> Schönauweg 4
> CH-9013 St. Gallen
>
> Tel: +41 81 755 32 49
> Web: http://www.ntb.ch
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list