Duplicated vertices when using vtkOBJReader
Importing a .obj file results in an erroneously high number of points. For instance, importing https://github.com/menpo/menpo3d/blob/master/menpo3d/data/james.obj, should have 34,913 vertices and 68,486 faces, but instead has 205,458 vertices (number of faces * 3). I've been using the Python API, but I've come across issues in other projects not using the Python API: https://github.com/valette/ACVD/issues/11.
Sample code:
import vtk
from vtk.util.numpy_support import vtk_to_numpy
obj_importer = vtk.vtkOBJReader()
obj_importer.SetFileName('james.obj')
obj_importer.Update()
polydata = obj_importer.GetOutput()
points = vtk_to_numpy(polydata.GetPoints().GetData()).astype(np.float)
print(points.shape) # Should be (34913, 3), not (205458, 3)