eror c2027: use of undefined type ' vtk porperty '. What is the mean of this error? I compile this code :<br><br><div id="textboxstyle">
<p align="left">#include "vtkSphereSource.h"<br> #include "vtkPolyDataMapper.h" <br>#include "vtkActor.h" <br>#include "vtkRenderWindow.h" <br>#include "vtkRenderer.h" <br>
#include "vtkRenderWindowInteractor.h" </p>
<p align="left">void main () <br>{ </p>
<p align="left"> // create sphere geometry <br> vtkSphereSource *sphere = vtkSphereSource::New(); <br> sphere->SetRadius(1.0); <br> sphere->SetThetaResolution(18); <br> sphere->SetPhiResolution(18); </p>
<p align="left"> // map to graphics library <br> vtkPolyDataMapper *map = vtkPolyDataMapper::New(); <br> map->SetInput(sphere->GetOutput()); </p>
<p align="left"> // actor coordinates geometry, properties, transformation <br> vtkActor *aSphere = vtkActor::New(); <br> aSphere->SetMapper(map); <br> aSphere->GetProperty()->SetColor(0,0,1); // sphere color blue </p>
<p align="left"> // a renderer and render window <br> vtkRenderer *ren1 = vtkRenderer::New(); <br> vtkRenderWindow *renWin = vtkRenderWindow::New(); <br> renWin->AddRenderer(ren1); </p>
<p align="left"> // an interactor <br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); <br> iren->SetRenderWindow(renWin); </p>
<p align="left"> // add the actor to the scene <br> ren1->AddActor(aSphere); <br> ren1->SetBackground(1,1,1); // Background color white </p>
<p align="left"> // render an image (lights and cameras are created automatically) <br>
renWin->Render(); </p>
<p align="left"> // begin mouse interaction <br>
iren->Start(); <br>
}</p>
</div>moreover ; error c2227 : left of'-> setcolor' must point to class/struct/union/generic type<br><br>what is the reason of these two errors? <br><br><br>salih halil sonmez <a href="mailto:salihhalilsonmez@gmail.com">salihhalilsonmez@gmail.com</a><br>