director.ioUtils module

director.ioUtils.readDataFromFile(filename)[source]
director.ioUtils.readImage(filename)[source]
director.ioUtils.readMultiBlock(filename)[source]

Reads a .vtm file and returns a list of vtkPolyData objects

director.ioUtils.readObjMtl(filename)[source]

Read an obj file and return a list of vtkPolyData objects. If the obj file has an associated material file, this function returns (polyDataList, actors). If there is not a material file, this function returns (polyDataList, None).

director.ioUtils.readPolyData(filename, computeNormals=False)[source]
director.ioUtils.readVrml(filename)[source]

Returns list of vtkPolyData meshes and a list of colors as 3-tuples

director.ioUtils.saveDataToFile(filename, dataDict, overwrite=False)[source]
director.ioUtils.writeImage(image, filename)[source]
director.ioUtils.writePolyData(polyData, filename)[source]