Hi,<div><br></div><div>A couple of weeks ago I posted a problem with the GetNumberOfPoints() when doing the following:</div><div><br></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>vtkPolyDataReader *contourReader = vtkPolyDataReader::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>contourReader->SetFileName( "Test.vtk" ); // test contour file in vtk format</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>contourReader->Update();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkPolyData *poly = vtkPolyData::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>poly->DeepCopy( contourReader->GetOutput() );</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkPoints *points = poly->GetPoints();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>int NumberOfTotalPoints = points->GetNumberOfPoints(); <======= here the problem occurs!!!!</div>
<div><br></div><div>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</div>
<div><br></div><div><div>#ifdef WPRFLAG</div><div> __winitenv = envp;</div><div> mainret = wmain(argc, argv, envp);</div><div>#else /* WPRFLAG */</div><div> __initenv = envp;</div><div> mainret = main(argc, argv, envp); <================= break point !!!</div>
<div>#endif /* WPRFLAG */</div><div><br></div><div>#endif /* _WINMAIN_ */</div><div><br></div><div> if ( !managedapp )</div><div> exit(mainret);</div><div><br></div><div> _cexit();</div>
<div><br></div><div> }</div></div><div><br></div><div>When I was running the same code using older version vtk (before 5.0 release), everything was fine. Is there any change in vtkPoints? </div><div><br></div><div>
I need to use this function urgently. I could not fine a workaround. Thanks again for any suggestion and help.</div><div><br></div><div>Ming</div><div><br></div>