[vtkusers] Problem with AppendPolyData

FUJII Kenji kenji.fujii at noe.co.jp
Mon Jan 17 06:37:34 EST 2011


Hello Eric,

Thanks for your support.

I checked the code you edited and corrected my code.
Your one was very good reference for me.At last, I could merge some 
Polydata.
I attached correct code to this mail for someone who wants to see it.

Thanks a lot.
Kenji

----- Original Message ----- 
From: "Eric E. Monson" <emonson at cs.duke.edu>
To: "FUJII Kenji" <kenji.fujii at noe.co.jp>
Cc: "VTK Mailing List" <vtkusers at vtk.org>; "David Doria"
<daviddoria at gmail.com>
Sent: Saturday, January 15, 2011 4:48 AM
Subject: Re: [vtkusers] Problem with AppendPolyData


Hey Kenji,

The attached file may not solve all of your problems, but it gets you
closer.

First, there was a typo in one of your Z coordinates that set it at 3900
rather than 0.3900. Second, the clean filter was removing all of the points
because none of them were used in any cells so I added vertex cells to the
polydata. (The cutting isn't hooked up right now, and there may be some
other junk left around from my experimentation.)

Hope this helps,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Jan 14, 2011, at 7:16 AM, David Doria wrote:

> David
>
> I edited my python code to make data from own code.
> AppendPolyData class was not still working well.
>
> Please check it.
>
> Please keep the discussion on the list. I'm not much of a Python guy so
> I'll let someone who is take a look.
>
> David
> <Append_and_CuttingTest2.py>_______________________________________________
> 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




--------------------------------------------------------------------------------


> Hey Kenji,
>
>
> The attached file may not solve all of your problems, but it gets you
> closer.
>
>
> First, there was a typo in one of your Z coordinates that set it at 3900
> rather than 0.3900. Second, the clean filter was removing all of the
> points because none of them were used in any cells so I added vertex cells
> to the polydata. (The cutting isn't hooked up right now, and there may be
> some other junk left around from my experimentation.)
>
>
> Hope this helps,
> -Eric
>
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
>


--------------------------------------------------------------------------------


>
>
> On Jan 14, 2011, at 7:16 AM, David Doria wrote:
>
>
>    David
>
>
>    I edited my python code to make data from own code.
>    AppendPolyData class was not still working well.
>
>
>    Please check it.
>
>
>  Please keep the discussion on the list. I'm not much of a Python guy so
> I'll let someone who is take a look.
>
>
>  David
>
> <Append_and_CuttingTest2.py>_______________________________________________
>  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
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Append_CuttingTest_Correct.zip
Type: application/x-zip-compressed
Size: 84338 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110117/47096585/attachment.bin>


More information about the vtkusers mailing list