[Insight-users] copy the cell from vtkPolyData to another
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed, 07 Apr 2004 10:13:11 -0400
Longfei,
There is nothing really to copy a particular cell, but you can iterate
over a cell array:
for (cellArray->InitTraversal(); cellArray->GetNextCell(npts,pts); )
{
//copy the cell only if necessessary
}
Mathieu
Longfei Cong wrote:
> Hi Mathieu Malaterre,
> I just want to copy a part of the cell to another, not all the cell. Is there any good method?
>
>
>>Longfei,
>>
>> In python:
>>
>>foo1 = vtkPolyData()
>>....
>>foo2 = vtkPolyData()
>>....
>>foo2.DeepCopy(foo1)
>>
>>Mathieu
>>
>>Longfei Cong wrote:
>>
>>>Hi insight-users£¬
>>> i have got the meshs of vtkPolyData. Now i want to copy a part of the meshs to another vtkPolyData. could anyone help me , thanks a million.
>>>
>>>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Longfei Cong
>>>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡lfcong at nlpr.ia.ac.cn
>>>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-04-06
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>
>
> = = = = = = = = = = = = = = = = = = = =
>
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
> Àñ£¡
>
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Longfei Cong
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡lfcong at nlpr.ia.ac.cn
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-04-07
>
>
>
>