[vtkusers] (no subject)
sha1 at doc.ic.ac.uk
sha1 at doc.ic.ac.uk
Thu Feb 2 16:46:26 EST 2006
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
More information about the vtkusers
mailing list