[vtkusers] does anybody can help me

邵世锋 shifeng.s at 163.com
Wed Aug 23 04:24:09 EDT 2006


I have a problem when I  built the :
#include "vtkImageReader.h"
#include "vtkContourFilter.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
void main()
{
 vtkImageReader *image=vtkImageReader::New();
  image->SetFilePrefix("D:\课外学习\vtk\example\FullHead\Data\fullHead");
     image->SetDataExtent(0,127,0,127,1,20);
  image->SetDataOrigin(0,0,0);
 // image->SetFileDimensionality(3);
 vtkContourFilter *contour=vtkContourFilter::New();
        contour->SetInput((vtkDataSet *)image->GetOutput());
     contour->SetValue(0, 800);
  vtkPolyDataMapper *mapper=vtkPolyDataMapper::New();
        mapper->SetInput(contour->GetOutput());
  vtkActor *actor=vtkActor::New();
        actor->SetMapper(mapper);
  vtkRenderer *render=vtkRenderer::New();
        render->AddActor(actor);
  vtkRenderWindow *renwin=vtkRenderWindow::New();
        renwin->AddRenderer(render);
  vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();
  iren->SetRenderWindow(renwin);
     renwin->Render();
     iren->Start();
     // CDialog::OnOK();
}
 
And than there was an error Like this:fatal error C1189: #error :  "No native data type can represent a 64-bit integer."
Error executing cl.exe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060823/f4abbf90/attachment.htm>


More information about the vtkusers mailing list