[vtkusers] GetNumberOfPoints() of vtkPoints

David Cole david.cole at kitware.com
Thu Oct 23 17:46:39 EDT 2008


Show the output window in Visual Studio by choosing:> the View menu
> the "Other Windows" submenu
> the "Output" menu item

(or using the "Ctrl+Alt+O" shortcut key)


On Thu, Oct 23, 2008 at 5:42 PM, David Cole <david.cole at kitware.com> wrote:

> Look at the output window after running your program in the debugger.
> Copy the text from that output window and paste it into your next reply.
>
>
>
> On Thu, Oct 23, 2008 at 4:54 PM, Ming Chao <mingchao2005 at gmail.com> wrote:
>
>> Hi David,
>> Thanks for looking into this.
>>
>>
>> Do you have multiple versions of VTK dll's in your PATH?
>>
>>
>> I do have another vtk version (5.0.4) after I had this problem with
>> 5.2.0. But I believe 5.0.4 was not included. I am not sure what you mean
>> by PATH. Anyhow, I checked Path in the System vairables. I did not put any
>> version of  VTK in it. If there is other PATH, please let me how to check.
>>
>>
>>>
>>> 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?
>>>
>>
>> When I run the program in debugger mode, it immediately brought me to the
>> crtexe.c file. How do I find out whether VTK 5.3 dlls are loaded or not? I
>> have to say that I am not quite good at Visual Studio debugging stuff.
>>
>> Ming
>>
>>
>>
>>>
>>>
>>> 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/ddf385f4/attachment.htm>


More information about the vtkusers mailing list