printf("EED Warnning!! PolyDataToImageData::Process Clean this code .................;\n ");
int ext[6];
bbGetInputInImage()->GetExtent( ext );
+ double spc[3];
+ bbGetInputInImage()->GetSpacing( spc );
+ double org[3];
+ bbGetInputInImage()->GetOrigin( org );
+
// vtkCleanPolyData *clean1 = vtkCleanPolyData::New();
if (clean1!=NULL) clean1->Delete();
clean1 = vtkCleanPolyData::New();
if (dataToStencil!=NULL) dataToStencil->Delete();
dataToStencil = vtkPolyDataToImageStencil::New();
dataToStencil->SetInputData( triangle1->GetOutput() );
+ dataToStencil->SetOutputOrigin( org );
+ dataToStencil->SetOutputSpacing( spc );
dataToStencil->SetOutputWholeExtent( ext );
dataToStencil->Update();
// vtkExtractVOI *extract = vtkExtractVOI::New();