[vtkusers] GetNumberOfPoints() of vtkPoints

David Cole david.cole at kitware.com
Thu Oct 23 16:36:45 EDT 2008


Do you have multiple versions of VTK dll's in your PATH?
What is the output in the Visual Studio output window when you run your
program in the debugger? Does it really indicate that VTK 5.2 dlls are
getting loaded?


On Thu, Oct 23, 2008 at 4:25 PM, Ming Chao <mingchao2005 at gmail.com> wrote:

> Hi,
> A couple of weeks ago I posted a problem with the GetNumberOfPoints() when
> doing the following:
>
>    vtkPolyDataReader *contourReader = vtkPolyDataReader::New();
>  contourReader->SetFileName( "Test.vtk" ); // test contour file in vtk
> format
> contourReader->Update();
>
> vtkPolyData *poly = vtkPolyData::New();
> poly->DeepCopy( contourReader->GetOutput() );
>
> vtkPoints *points = poly->GetPoints();
> int NumberOfTotalPoints = points->GetNumberOfPoints(); <=======  here the
> problem occurs!!!!
>
> I am using the latest version 5.2.0 and visual studio 7. The compiling and
> linking are fine, but when running the executable there was an error. I
> tried to debug, and found that the break point in file crtexe.c at
>
> #ifdef WPRFLAG
>             __winitenv = envp;
>             mainret = wmain(argc, argv, envp);
> #else  /* WPRFLAG */
>             __initenv = envp;
>             mainret = main(argc, argv, envp);    <================= break
> point !!!
> #endif  /* WPRFLAG */
>
> #endif  /* _WINMAIN_ */
>
>             if ( !managedapp )
>                 exit(mainret);
>
>             _cexit();
>
>         }
>
> When I was running the same code using older version vtk (before 5.0
> release), everything was fine. Is there any change in vtkPoints?
>
> I need to use this function urgently. I could not fine a workaround. Thanks
> again for any suggestion and help.
>
> Ming
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081023/f3666e10/attachment.htm>


More information about the vtkusers mailing list