<div><STRONG><U>Brian:</U></STRONG> </div> <div>I tried to run a sample program available on the site. It is a sphere program. i build the program in VC++ 6.0. I have also made available all the directories containing the include files in the program. This is the following error i have recieved after compilng.</div> <div>The sphere program is</div> <div> </div> <div>--------------------------------Sphere Program <A href="http://www.vtk.org/example-code.php">http://www.vtk.org/example-code.php</A> ---------</div><PRE>#include "vtkSphereSource.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkRenderWindow.h" #include "vtkRenderer.h" #include "vtkRenderWindowInteractor.h" void main () { // create sphere geometry vtkSphereSource *sphere = vtkSphereSource::New(); sphere->SetRadius(1.0); sphere->SetThetaResolution(18); sphere->SetPhiResolution(18); // map to graphics library
vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(sphere->GetOutput()); // actor coordinates geometry, properties, transformation vtkActor *aSphere = vtkActor::New(); aSphere->SetMapper(map); aSphere->GetProperty()->SetColor(0,0,1); // sphere color blue // a renderer and render window vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); // an interactor vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // add the actor to the scene ren1->AddActor(aSphere); ren1->SetBackground(1,1,1); // Background color white // render an image (lights and cameras are created automatically) renWin->Render(); // begin mouse interaction iren->Start(); } </PRE> <div> </div> <div> </div> <div><STRONG>--------------------Configuration: VTK Trial -
Win32 Debug--------------------</STRONG><BR>Compiling...<BR>Trial.cpp<BR>C:\Brian Assignment\Project\VTK Trial\Trial.cpp(24) : error C2027: use of undefined type 'vtkProperty'<BR> c:\program files (x86)\vtk 5.0\vtk\rendering\vtkactor.h(39) : see declaration of 'vtkProperty'<BR>C:\Brian Assignment\Project\VTK Trial\Trial.cpp(24) : error C2227: left of '->SetColor' must point to class/struct/union<BR>Error executing cl.exe.</div> <div>Trial.obj - 2 error(s), 0 warning(s)</div> <div> </div><p> 
                <hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.