[vtkusers] vtkObjReader doesn't support obj. files

Shawn Ericson sce at cfdrc.com
Mon Feb 4 09:32:50 EST 2008


I also had trouble with obj files once. If I remember correctly it was 
the "g" in  "g csr0125a.obj verticesIryna", or perhaps  the whole line. 
Try removing the line and see what happens.


Pavlyshak wrote:
> Hello all, 
>
> I use vtkObjReader for opening and rendering the .obj file, which represents set of Vertices and Polygons. My code can open without problems 3DMax  obj.,  Poser obj. and so on. But when opening wanted obj. file, which is represented as:
> # File Generated By Veridian write_wave v 1.1
> # 145711 Vertices, 283595 Polygons
>
> mtllib csr0125a.mtl
>
> g csr0125a.obj vertices
> v 626.4 -62.8 -1000.0 1 1 3
> v 627.0 -59.0 -1000.0 1 1 3
> ........
> v 72.6 41.9 626.0 12 5 1
> g csr0125a.obj faces
> usemtl m1
> f 9//9 10//10 198//198
> f 199//199 198//198 10//10
> ....................
> f 145703//145703 145704//145704 145708//145708
>
> the following massage appears:
> Unhanded exception at ..:Access violation reading location...
> So the problem is with the pointer...and as it follows with normals.
>
> The file is not impossible for opening. I tried others software and they open this obj. file.
>  
> Maybe somebody has already been faced with similar problem..
> There is a possibility that somebody rewritten vtkObjReader. It would be great.
>
> waiting for any tips, 
> Iryna
>
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>   


-- 
CFD Research Corporation                Phone: (256) 726-4821
5th Floor, Suite 501                     
215 Wynn Dr.                            Fax:   (256) 726-4806
Huntsville, AL 35805                    http://www.cfdrc.com




More information about the vtkusers mailing list