[vtkusers] stack overflow

Bill Lorensen wlorens1 at nycap.rr.com
Mon Sep 4 11:47:33 EDT 2000


connectivityFilter->SetMaxRecursionDepth 500

Bill

At 05:35 PM 9/4/00 +0000, Luca Antiga wrote:
>Hi, everyone. I hope you had a good summer.
>I recently upgraded from vc++5.0 & vtk2.0 to vc++6.0 & vtk3.1.2 (I'm working on a WinNT workstation).
>I have some problems with code that gave me no problem when I was using vtk2.0.
>For instance, I get an error message of "stack overflow" when executing the following code
>(this also happens in other situations)
>
>
>vtkPolyDataReader *polyDataReader = vtkPolyDataReader::New();
>polyDataReader->SetFileName(INPUT_POLYDATA_FILE);
>polyDataReader->Update();
>
>vtkPolyDataConnectivityFilter *connectivityFilter = vtkPolyDataConnectivityFilter::New();
>connectivityFilter->SetInput(polyDataReader->GetOutput());
>connectivityFilter->SetExtractionModeToLargestRegion();
>connectivityFilter->Update();
>
>vtkPolyDataWriter *polyDataWriter = vtkPolyDataWriter::New();
>polyDataWriter->SetInput(connectivityFilter->GetOutput());
>polyDataWriter->SetFileName(OUTPUT_POLYDATA_FILE);
>polyDataWriter->SetFileTypeToASCII();
>polyDataWriter->Write();
>
>
>Does this "stack overflow" error suggest something to you?
>Thank you in advance
>
>Luca Antiga
>Bioengineering Dept.
>Mario Negri Institute - Ranica (BG) ITALY
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at http://profiles.msn.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