[vtkusers] Get Center of Cells from a VTKPlane

Bill Lorensen bill.lorensen at gmail.com
Thu Feb 1 08:31:28 EST 2018


You may find this example helpful:
https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellCenters/

Bill


On Thu, Feb 1, 2018 at 2:41 AM, Bachus92 <gabriellakl at hotmail.de> wrote:
> Hi all,
>
> I can't find the right class/function to do the following thing,
> maybe/hopefully someone can help me.
>
> I create a vtkPlaneSource and set the X - & Y - Resolution. This means, that
> the vtkPlaneSource
> "is divided" into cells. I want to find the center of each Cell and write
> this into a std::vector (not VTK array).
>
> I am programming in C++. This is the start:
>
> vtkSmartPointer<vtkPlaneSource> planeSource =
> vtkSmartPointer<vtkPlaneSource>::New();
> planeSource->SetResolution(2,2);
>
> Thank you very much for your help :)
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsParadise at noware dot com


More information about the vtkusers mailing list