[vtkusers] How to get neighbor points in a polydata without cells?

C P cp.vtk.user at googlemail.com
Tue May 29 11:44:28 EDT 2012


Hi,

try to call

cutter_output->buildCells();

and/or

cutter_output->buildLinks();

before checking for the cells.

Cheers,
cp

On Tue, May 29, 2012 at 5:09 PM, soheilghafurian
<soheilghafurian at yahoo.com>wrote:

> I have used vtkCutter to cut a polydata by a plane and I have save the
> output
> contour as polydata. Now, I want to get the neighbor points to a point on
> it, but I don't know how to do it.
>
> I usually use polydata->GetPointCells() and then polydata->GetCellPoints(),
> but the problem is the contour doesn't seem to have any cells! does anyone
> know how I could get the neighbor points?
>
> Thanks a lot
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-get-neighbor-points-in-a-polydata-without-cells-tp5713461.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>



-- 
________________________________________________________

M.Sc. Chavdar Papazov
Technische Universtät München, Robotics and Embedded Systems

Home page: http://www6.in.tum.de/Main/Papazov
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120529/6f1eee29/attachment.htm>


More information about the vtkusers mailing list