[vtkusers] Making our own vtkAppendPolyData...(Could use some help !)

tutu lamotte tutulamotte at yahoo.com
Fri Sep 26 14:02:33 EDT 2003


Dear list !

I am currently trying to implement my own version of
the Execute function of vtkAppendPolydata. The goal is
to make it so that it appends a “newPoly” to an
already existing vtkPolyData instance called “m_base”.

Since we wont be generating an output but simply
modifying an already existing dataset, we must Resize
m_base. I can do that but the MaxID of the points data
array doesn’t get updated. And this I causing problems
in the function AppendData on line 765 (See
attachment):

if (src->GetNumberOfTuples() + offset >
dest->GetNumberOfTuples())
{
  return;
}

GetNumberOfTuples doesn’t look at the size of the
array but the MaxID. And divides it by the number of
components (3).

In all cases, our goal is to get the best possible way
to really append a polydata to an already existing
one.

Thanks for any help !


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Win32Cone.cxx
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030926/ba765c7f/attachment.txt>


More information about the vtkusers mailing list