(no subject)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

sha1
Dear friends,
   I get the run time error on the following bit of error from
vtkLoopSubdivisionFilter in Win 2000 , VC++ .Net . I get the error only when I
actually set number of subdivisions to greater than zero. Any help will be
appreciated. I suspect that there is no such run time error in linux (because
some other code works fine ) , can any body help me in this matter.

char *srcpath="C://notred//_d_UNIFORMED_TEXTURED//02463_458.vtk";
        char *bmppath="C://notred//_d_UNIFORMED_TEXTURED//02463_458.bmp";
char *tarpath="C://notred//_d_UNIFORMED_TEXTURED//02463_458.vtk";
        struct coords
        {
                unsigned x;
                unsigned y;
        };
        src_reader = vtkPolyDataReader::New();
    src_reader->SetFileName(srcpath);
        src_reader->Update();
        vtkPolyData *ply=vtkPolyData::New();
        ply=src_reader->GetOutput();
        vtkLoopSubdivisionFilter *subdivider = vtkLoopSubdivisionFilter::New();
        subdivider->SetInput(ply);
        subdivider->SetNumberOfSubdivisions(1);
        subdivider->Modified();
        subdivider->Update();

Thanks in advance ,

Yours,

Hassan Amin
_______________________________________________
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