director.geometryencoder module

director.geometryencoder.decodePolyData(data)[source]

Given a numpy int8 array, deserializes the data to construct a new vtkPolyData object and returns the result.

director.geometryencoder.encodePolyData(polyData)[source]

Given a vtkPolyData, returns a numpy int8 array that contains the serialization of the data. This array can be passed to the decodePolyData function to construct a new vtkPolyData object from the serialized data.