[vtkusers] Can I get the coordinate of all the points from a 2D actor?
Liang Ma
leo at esit.com
Tue Nov 25 13:37:16 EST 2008
Hi Peter,
Thanks a lot! My 3D data is from a STL file and I read it via a
vtkSTLReader. I think it is a PolyData.( I am new in VTK) I will try
vtkContourFilter and let you know the result. Thanks
Regards
Liang Ma
----- Original Message -----
From: "Peter F Bradshaw" <pfb at exadios.com>
To: "VTK Users" <vtkusers at vtk.org>
Sent: Tuesday, November 25, 2008 11:10 AM
Subject: Re: [vtkusers] Can I get the coordinate of all the points from a 2D
actor?
> Hi Liang Ma;
>
> You do not say what the form of the 3D data is - I'm assuming it is
> PolyData. Have you looked at vtkContourFilter? I think this is what you
> want. In order to get the points of the contour you can use
> vtkPolyDataWriter to write the data to a file or string.
>
> On Mon, 24 Nov 2008, Liang Ma wrote:
>
>> Hi,
>>
>> I had a problem when I tried to overlay a 2D actor on a video. I did the
>> video via Direcrtshow, and I also have a function to draw point on the
>> video. I want to draw a contour of tumor on the video. The contour is cut
>> from a 3D model of the tumor using vtkcutter. I tried to draw the contour
>> and the video on the the same item, but the result is not good. If I can
>> get the coordinate of all the point in the contour, then I can draw the
>> contour in the Directshow. That would be the best way.
>>
>> I did not know if I can do it and how to do it. If you have some ideas on
>> it. Whould you please give me some advices? Thank you so much.
>>
>> I also tried do the video in VTK. It is another story. I wll share with
>> you later.
>>
>> Best Regards
>>
>> Liang Ma
>>
>
> Cheers
>
> --
> Peter F Bradshaw: http://www.exadios.com (public keys avaliable there).
> Personal site: http://personal.exadios.com
> "I love truth, and the way the government still uses it occasionally to
> keep us guessing." - Sam Kekovich.
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list