<DIV>how to compile a vtk program?</DIV>
<DIV> </DIV>
<DIV>i just begin to learn vtk.my produce maybe is not right,please help.</DIV>
<DIV> </DIV>
<DIV>my produce is that:</DIV>
<DIV>1)put *.cxx(vtk cxx file) and a CMakeList.txt into a new folder;</DIV>
<DIV>2)apply CMake on the new folder as a source ,and make another new</DIV>
<DIV>folder to locate new *.dsw file .</DIV>
<DIV>3)APPLY VC6.0 TO COMpile the *.dsw file ;</DIV>
<DIV> </DIV>
<DIV>my question is that :</DIV>
<DIV>1)how to write the CMakeList.txt ,(i only know how to write in itk);</DIV>
<DIV>2)my program is :</DIV>
<DIV>#include "vtkRenderer.h"<BR>main()<BR>{<BR> vtkRenderMaster rm;<BR> vtkRenderWindow 3 win =rm.MakeRenderWindow();<BR> vtkRender 3 ren =win - >MakeRenderer();<BR> vtkRenderWindowInteractor 3 iren =win->MakeRenderWindowInteractor();<BR> vtkConeSource 3 cone = new vtkConeSource ;<BR> cone->SetResolution(8);<BR> vtkPolyMapper 3 mapper = new vtkPolyMapper ;<BR> mapper->SetInput (cone->GetOutput ()) ;<BR> vtkActor coneActor = new vtkActor ;<BR> coneActor->SetMapper (mapper) ;<BR> ren->AddActors(coneActor) ;<BR> win->Render() ;<BR> iren->Start() ;<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>compile error is that :not found vtk.h file ,anyone know it ?</DIV><BR><BR><p>
                <hr size=1>DO YOU YAHOO!?<br>
<a href="http://cn.mail.yahoo.com/?id=77072" target=blank>
雅虎免费G邮箱-中国最强免费防毒反垃圾超大邮箱</a>