#include "stdafx.h"
#include "vtkconesource.h"
#include "vtkpolydatamapper.h"
#include "vtkactor.h"
#include "vtkrenderer.h"
#include "vtkrenderwindow.h"
int main(int argc, char* argv[])
{
vtkConeSource *cone=vtkConeSource::New();
cone->SetHeight(5);
cone->SetRadius(2);
cone->SetResolution(100);
vtkPolyDataMapper * map=vtkPolyDataMapper::New();
map->SetInput(cone->GetOutput());
vtkActor *actor=vtkActor::New();
actor->SetMapper(map);
vtkRenderer * ren=vtkRenderer::New();
ren->AddActor(actor);
ren->SetBackground(.9,.5,.4);
vtkRenderWindow* win=vtkRenderWindow::New();
win->AddRenderer(ren);
win->SetSize(600,480);
while (1)
win->Render();
return 0;
}
/*
libs includes:vtkRendering.lib vtkGraphics.lib vtkImaging.lib vtkIO.lib vtkFiltering.lib vtkCommon.lib vtksys.lib vtkDICOMParser.lib vtkpng.lib vtktiff.lib vtkzlib.lib vtkjpeg.lib vtkexpat.lib vfw32.lib vtkMPEG2Encode.lib vtkftgl.lib vtkfreetype.lib opengl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
*/