how to use vtk import obj file which contains multiple objects?

(Wenye He) #1

I am using vtkobjreader to import obj and show them in my viewer.
One obj file may contain more than one object.
How to import the obj file and create multiple objects?

(Bill Lorensen) #2

Use vtkOBJImporter to import multiple objects from a .obj file.

See this example. It also shows how to get each object.

There are many examples in the VTKExamples Project.

Enjoy VTK,


(Wenye He) #3

What about stl or ply? Do they have reader and importer? Importer for a file that contains multiple objects? @lorensen

(Bill Lorensen) #4

They do not have importers.