[vtkusers] vtkOBJReader not reading the whole mesh

Bill Lorensen bill.lorensen at gmail.com
Wed Dec 13 12:53:17 EST 2017


You also need the material file that is referenced in the .obj file:
model.mtl

Then use the OBJImporter because you have more than one object in the file

See:
https://lorensen.github.io/VTKExamples/site/Cxx/IO/OBJImporter/


On Wed, Dec 13, 2017 at 4:40 PM, Tony Yuan <tonyuanac at gmail.com> wrote:
> Hi,
>
> I have a problem reading Blender OBJ files using VTK. The vtkOBJReader seems to only read part of the mesh. When I render the data being read it looks like this:
>
>
>
> However, when I import the OBJ file in Meshlab it looks fine. Mac’s Preview is also able to open the complete mesh.
>
>
>
> I attached the OBJ file and my code below. I am not very familiar with the OBJ format and how vtkOBJReader is implemented. If someone could point me to the problem and possible fixes, that would be great.
>
>
>
> Thanks,
> Tony
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list