[Insight-users] access to points coordinates

Sylvain Jaume sylvain.jaume at kitware.com
Sat May 27 13:45:48 EDT 2006


Hi Cecilia,

You can get the point coordinates from the vtkContour using:

int numPts = myVTKContour->GetOutput()->GetNumberOfPoints();
double pt[3];

for ( int m=0; m < numPts; m++ )
{
myVTKContour->GetOutput()->GetPoint( m, pt );
}

Regards,
Sylvain

Cecilia Zanella wrote:
> Hi,
> I need your help: I have created an isosurface using vtkContour class, 
> now I have to approach to the points coordinates to execute the shape 
> analysis. How can I do?
> Have I to pass to ITK?
> Thanks,
> Cecilia.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>   


More information about the Insight-users mailing list