[vtkusers] .obj files
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Wed Oct 30 10:00:36 EST 2002
Hi,
Did you not post the same question on 17th Oct? The answer is the same: use
vtkCleanPolyData after vtkOBJReader. So...
vtkOBJReader *face = vtkOBJReader::New();
face->SetFileName("face.obj");
vtkCleanPolyData *clean = vtkCleanPolyData::New();
clean->SetInput(face->GetOutput())
//then check...
vtkIdType numPts;
numPts = clean->GetOutput()->GetNumberOfPoints()
If you look back at the thread of the 17th Oct you'll find the reason for
this.
HTH
Goodwin
----- Original Message -----
From: "Theodore Papatheodorou" <tp500 at doc.ic.ac.uk>
To: <vtk-developers at public.kitware.com>; <vtkusers at public.kitware.com>
Sent: Wednesday, October 30, 2002 10:58 AM
Subject: [vtkusers] .obj files
> Hi,
> I am trying to load a file using the vtkOBJReader which reads an
> OBJ file and returns a vtkPolyDataStructure. The file I am trying to
> load contains 9000 points. However when it is loaded and converted to
> PolyData it contains more than 40.000 points which is incorrect. I
> printed out these points and I have all the points that are in the file
> repeated 3-4 times each in random intervals inside the polydata
> structure.
> Do you know why this happens. Is there a known bug with vtkOBJReader?
> Thanks for your advice!!
> Theodoros
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list