[vtkusers] HELP: Problem getting number of points.
Jorrit Schaap
jorrit at lkeb.azl.nl
Wed Jan 10 03:27:16 EST 2001
Try:
objInput[REF]->GetOutput()->Update();
--
Jorrit Schaap
Division of Image Processing
Leiden University Medical Center
+31 71 5266206
> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Allan Loh
> Sent: woensdag 10 januari 2001 4:01
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] HELP: Problem getting number of points.
>
>
> Hi all!
>
> I'm hoping someone out there can give me a hand with this problem I'm
> having.
> I'm trying to write a surface registration program, but I'm
> having problems
> getting the number of points in each vtkPolyData.
> A code fragment is below..
>
> objInput[REF] = vtkOBJReader::New();
> objInput[REF]->SetFileName(refSurfaceFileName);
> objInput[REF]->Update();
>
> numPoints = objInput[REF]->GetOutput()->GetNumberOfPoints();
>
> However, no matter what I seem to do, numPoints is always 0.
> A PrintSelf(...) of the objInput shows that it has 20904 points,
> and rendering the objInput displays the model.
>
> I'm near my wits end trying to figure out where I'm making my mistake,
> and if anyone could help me out here, I'd appreciate it lots.
>
> Thanks in advance
>
> Allan
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list