Probleme d affchage

cs_wima85 Messages postés 6 Date d'inscription mardi 22 juillet 2008 Statut Membre Dernière intervention 4 mars 2009 - 2 mars 2009 à 11:51
cs_wima85 Messages postés 6 Date d'inscription mardi 22 juillet 2008 Statut Membre Dernière intervention 4 mars 2009 - 2 mars 2009 à 15:36
Hi, i am working on a project with C++ and VTK and i really need your help!!
I have 2 problems:
I have a file(.obj) that contains my mesh (the set of facets ans vetices) and i want ton charge it in a data structure ( i think that vtkPolydata is the most suitable. how we can extract ths vertices and facets from the OBJ to the polydata.

I have already seen the solution with class vtkOBJreader but i have this error:
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkOBJReader * __cdecl vtkOBJReader::New(void)" (__imp_?New@vtkOBJReader@@SAPAV1@XZ)
i think that i have a file (OBJreader.dll) missed can you send me this file please (it is in SYSTEM32 folder)
please help me!!!!!!

2 réponses

cs_juju12 Messages postés 966 Date d'inscription samedi 3 avril 2004 Statut Membre Dernière intervention 4 mars 2010 4
2 mars 2009 à 14:02
The compiler doesn't check whether the dll is present or not.
However you probably haven't linked to the library file.
You should add somewhere in a code file :
#pragma comment (lib,"vtk.lib")
or whatsoever the lib's name is : refer to vtk's doc which should mention the appropriate lib to link.
0
cs_wima85 Messages postés 6 Date d'inscription mardi 22 juillet 2008 Statut Membre Dernière intervention 4 mars 2009
2 mars 2009 à 15:36
ok thanks a lot
i will try
0
Rejoignez-nous