[vtkusers] This error

Sameer Dhote samir.dhote at gmail.com
Thu Jan 17 23:45:27 EST 2008


Hi all,
i have got this error while trying to build a vtk code.. The code
works builds fine but does not execute but results in the following
error

The code is to display a glyph

/*********************************************Code*******************************************************
	vtkSphereSource *sphere = vtkSphereSource::New();
	sphere->SetRadius(1);
	
	vtkPolyDataMapper *mapper1 = vtkPolyDataMapper::New();
	mapper1->SetInputConnection(sphere->GetOutputPort());
	
	vtkActor *actor1 = vtkActor::New();
	actor1->SetMapper(mapper1);

		
	vtkConeSource *cone = vtkConeSource::New();
	cone->SetRadius(1);
	cone->SetHeight(1);
	cone->SetResolution(20);
	
	vtkGlyph3D *glyph = vtkGlyph3D::New();
	glyph->SetInputConnection(sphere->GetOutputPort());
	glyph->SetSource(cone->GetOutput());
	glyph->SetVectorModeToUseNormal();
	glyph->SetScaleModeToScaleByVector();
	glyph->SetScaleFactor(0.5);

	vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();
	mapper->SetInputConnection(glyph->GetOutputPort());
	
	vtkActor *actor = vtkActor::New();
	actor->SetMapper(mapper);
	
	vtkRenderer *ren1 = vtkRenderer::New();
	ren1->AddActor(actor);
	ren1->AddActor(actor1);
	ren1->SetBackground(0.6,0.8,0.6);
	ren1->SetViewport(0.0,0.0,0.5,1.0);

	
	vtkRenderWindow *rw1 = vtkRenderWindow::New();
	rw1->AddRenderer(ren1);
	rw1->SetSize(600,600);
	
	
	vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
 	iren->SetRenderWindow(rw1);
	
	
	vtkInteractorStyleTrackballCamera *style =
   	vtkInteractorStyleTrackballCamera::New();
 	iren->SetInteractorStyle(style);

	iren->Initialize();
	iren->Start();
	
	sphere->Delete();
	cone->Delete();
	glyph->Delete();
 	mapper->Delete();
	actor->Delete();
 	ren1->Delete();
	rw1->Delete();
	iren->Delete();
	style->Delete();

  return 0;


/*************************************************************************Error******************************************************

"The procedure entry
point?GetNextItemAsObject at vtkCollection@@QAEPVvtkObject@@AAPAX at Z could
not be found in the dynamic link library vtkCommon.dll"

What could be the possible reason behind this??

Regards
Sameer



More information about the vtkusers mailing list