<div>Hi Amy,</div> <div>You mean that i should include a library called "vtkHybrid.h"?</div> <div>If not, what should i do exactly??</div> <div>Thanks a lot<BR><BR><B><I>Amy Squillacote <ahs@cfdrc.com></I></B> a écrit :</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Are you linking against the vtkHybrid library (that contains <BR>vtkVRMLImporter)?<BR>- Amy<BR><BR>C. Hiba wrote:<BR>> Hi everyone,<BR>> I'm trying to read a VRML file like this:<BR>> <BR>> vtkDataSet *pDataset;<BR>> vtkVRMLImporter *vrml = vtkVRMLImporter::New();<BR>> vrml->SetFileName("file.wrl");<BR>> vrml->Update();<BR>> <BR>> vtkActorCollection *actors = vrml->GetRenderer()->GetActors();<BR>> actors->InitTraversal();<BR>> pDataset = actors->GetNextActor()->GetMapper()->GetInput();<BR>> <BR>> vtkGeometryFilter* geometryFilter = vtkGeometryFilter::New();<BR>>
geometryFilter->SetInput(pDataset);<BR>> <BR>> vtkPolyData* polyData = vtkPolyData::New();<BR>> polyData = geometryFilter->GetOutput();<BR>> polyData->Update();<BR>> <BR>> <BR>> But i have this bug:<BR>> <BR>> error LNK2001: unresolved external symbol "public: static class <BR>> vtkVRMLImporter * __cdecl vtkVRMLImporter::New(void)" <BR>> (?New@vtkVRMLImporter@@SAPAV1@XZ <mailto:?New@vtkVRMLImporter@@SAPAV1@XZ>)<BR>> Debug/myProject.exe : fatal error LNK1120: 1 unresolved externals<BR>> Error executing link.exe.<BR>> <BR>> Please, what should i do?<BR>> <BR>> Thank you for your help<BR>> <BR>><BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection <BR>> possible contre les messages non sollicités<BR>> http://mail.yahoo.fr Yahoo! Mail<BR>><BR>>
------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> This is the private VTK discussion list.<BR>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR>> <BR><BR>-- <BR>Amy Squillacote Phone: (256) 726-4839<BR>Computer Scientist Fax: (256) 726-4806<BR>CFD Research Corporation Web: http://www.cfdrc.com<BR>215 Wynn Drive, Suite 501<BR>Huntsville, AL 35805<BR><BR><BR></BLOCKQUOTE><BR></mailto:?New@vtkVRMLImporter@@SAPAV1@XZ><p> __________________________________________________<br>Do You Yahoo!?<br>En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités <br>http://mail.yahoo.fr Yahoo! Mail