[vtkusers] Problem with DeepCopy+vtkPolyData

Mathieu Malaterre mmalat at irus.rri.ca
Fri Apr 19 17:28:24 EDT 2002


Hi all,
  I want to simply copy a vtkPolyData. But I don't understand why
DeepCopy doesn't work. Here is my code:

strip = vtkStripper()

....#modify strip

mat = vtkPolyData()
mat.DeepCopy(strip.GetOutput())
dsm = vtkPolyDataMapper()
dsm.SetInput(mat)

strip is ok since I tried :
dsm.SetInput(strip.GetOutput())
So what should I change to copy a vtkPolyData  in another ?
Thanks a lot
mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmalat.vcf
Type: text/x-vcard
Size: 392 bytes
Desc: Card for Mathieu Malaterre
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020419/a316c8a0/attachment.vcf>


More information about the vtkusers mailing list