[vtkusers] vtkPolyData::ReplaceLinkedCell does not seem to work
Mengda Wu
wumengda at gmail.com
Wed Jan 27 13:39:37 EST 2016
Tried to debug a little bit. It seems that ReplaceLinkedCell or ReplaceCell can
only replace with the same number points.
It does not or cannot change the size of one cell in the vtkCellArray due
to the definition of vtkCellArray.
On Tue, Jan 26, 2016 at 5:53 PM, Mengda Wu <wumengda at gmail.com> wrote:
> Hi All,
>
> I am trying to delete one point on one end from a cell (VTK_POLY_LINE)
> from vtkPolyData.
>
> I tried to use ReplaceLinkedCell but it does not actually change
> the vtkPolyData. Why is that?
>
> What I did was
> (1) BuildLinks()
> (2) RemoveCellReference(cellId)
> (3) ReplaceLinkedCell (cellId, npts, pts) npts and pts are
> reconstructed from the old cell list minus the one point I was deleting.
> (4) Then I push the vtkPolyData to vtkCleanPolyData and deep copy the
> output
>
> Am I missing anything?
>
> Thanks,
> Mengda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160127/f24a5b79/attachment.html>
More information about the vtkusers
mailing list